Skip to content Chat

Grok Imagine API

4 Grok Imagine models on one OpenAI-compatible API and one prepaid balance, billed per use at the official price.

Get API Key All 4 Grok Imagine models

Official price

$0.08 / image

Grok Imagine Image 2.0

Grok Imagine models and prices 4

ModelPriceDiscount
Grok Imagine Image 2.0x-ai/grok-imagine-image-2.0$0.08 / image—
Grok Imagine Video 1.5x-ai/grok-imagine-video-1.5from $0.08 / second of video—
Grok Imagine Videox-ai/grok-imagine-videofrom $0.05 / second of video—
Grok Imagine Image Qualityx-ai/grok-imagine-image-quality$0.07 / image—

Prices as of November 5, 2026. Official price: the model maker's list price. Tier 1–3: OceanToken's standing discounts by cumulative top-up, not limited-time offers.

Same prompt, 8 models

One prompt, sent to each model through the OceanToken API on November 1, 2026. Every image is that model’s own output, only resized.

Prompt: “A matte white ceramic coffee mug with gentle steam rising, on a light oak table beside a sunny window, soft natural light, minimal clean product photography, no text, no logo”

Call the Grok Imagine API

Any OpenAI-compatible SDK works: set the base URL to https://api.oceantoken.ai/v1, use your OceanToken key and the model id as written.

Python
from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
result = client.images.generate(
    model="x-ai/grok-imagine-image-2.0",
    prompt="A lighthouse on a cliff at dawn")
print(result.data[0].url or "image returned as base64")

Why use Grok Imagine on OceanToken

  • One API key and one prepaid balance for nearly 500 models from 73 publishers.
  • OpenAI-compatible: change the base URL and the key, and keep your code.
  • Prepaid, with no subscription and no platform fee. Each API key can have its own spending limit.

Grok Imagine compared

Qwen Image 3 vs Grok Imagine Image 2.0 · All comparisons

Frequently asked questions

How much does the Grok Imagine API cost?

On OceanToken Grok Imagine Image 2.0 costs $0.08 / image. The lowest-priced Grok Imagine model is Grok Imagine Video, at from $0.05 / second of video. Every model is billed per use from a prepaid balance, with no subscription.

Are these the official Grok Imagine models?

Yes. You call each model by its own name and get that model. Every model page shows the official price next to ours before you call it.

How do I call the Grok Imagine API?

Create an API key in the OceanToken console, set the base URL to https://api.oceantoken.ai/v1 and use the model id, for example x-ai/grok-imagine-image-2.0. The OpenAI SDKs and any OpenAI-compatible client work.

Do I need a subscription to use Grok Imagine?

No. You add credits by card, and each request is billed at the model’s price. Purchased credits are valid for 12 months.

Get API Key All models

Other model APIs

Nano Banana API · Seedream API · GPT Image API · FLUX API · Qwen Image API · Recraft API · MAI Image API · Kimi API · MiniMax API · Claude API · GPT API · Gemini API · Grok API · Mistral API · Llama API · Gemma API · Nemotron API · Hunyuan API · Seed API · Sonar API · Command API · Nova API · Veo API · Kling API · Wan API · Hailuo API · Whisper API · Voyage API