Skip to main content

Image model

Grok Imagine Image 2.0

x-ai/grok-imagine-image-2.0

x-ai/grok-imagine-image-2.0 is an image generation model from xAI you can call on the OceanToken API at $0.08 per generated image; it supports image input.

At a glance

Model IDx-ai/grok-imagine-image-2.0
TypeImage
PublisherxAI
Price$0.08 per image
Endpoint/v1/images/generations, /v1/images/edits
API shapeOpenAI-compatible
In the catalog since2026-08-11

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/images/generations \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "x-ai/grok-imagine-image-2.0", "prompt": "A lighthouse at dawn, photographic"}'

Compared with similar models

Image models on OceanToken closest to x-ai/grok-imagine-image-2.0 in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per image)
Grok Imagine Image 2.0xAI$0.08
Recraft V4 Vector
recraft/recraft-v4-vector
Recraft$0.08
Recraft V4.1 Vector
recraft/recraft-v4.1-vector
Recraft$0.08
Qwen Image 3 Pro
qwen/qwen-image-3-pro
Qwen$0.075

More from xAI

All xAI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.