Skip to content
xAIImagegrok-imagine-image-2-0

Grok Imagine Image 2.0

Grok Imagine Image 2.0 for OpenAI-style Image Generation, Image editing.

Explore Grok Imagine Image 2.0 for OpenAI-style Image Generation, Image editing through the unified API. Supported interfaces and current availability are shown below.

  • OpenAI-style Image Generation
  • Image editing

Model details

Context window
2K tokens
Max output
4K tokens
Input
Text, images
Output
Images
Capabilities
Vision
Interfaces
OpenAI-style Image Generation, Image editing

Pricing

What each generation costs. The Inferray price is what you are charged — no gateway fee is added on top of it.

Grok Imagine Image 2.0 pricing.
MetricPrice
/ image · Rate tier: low/1k$0.04
/ image · Rate tier: low/2k$0.06
/ image · Rate tier: medium/1k$0.06
/ image · Rate tier: medium/2k$0.08
/ image · Default$0.06

Why teams pick it

  • Grok Imagine Image 2.0 for OpenAI-style Image Generation, Image editing.

Call Grok Imagine Image 2.0

Grok Imagine Image 2.0 answers on any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.

/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/generations \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image-2-0",
  "prompt": "A quartz crystal on a workbench"
}'
/v1/images/editsImage editing · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/edits \
  -H "Authorization: Bearer inferray_..." \
  -F 'model=grok-imagine-image-2-0' \
  -F 'prompt=Make the background blue' \
  -F 'image=@input.png'

More from xAI

Questions about this model

How much does the Grok Imagine Image 2.0 API cost?
Grok Imagine Image 2.0 is billed at Price not published per 1M image output tokens and Price not published per 1M input tokens on Inferray, the list price with no gateway fee on top.
Is there a free tier for Grok Imagine Image 2.0?
No. You add credit and pay Grok Imagine Image 2.0's list rate for each request — seats, projects, and API keys are free, and pay-as-you-go credit never expires.
Am I charged for failed requests?
No. A request that fails without returning a result is not billed. If a response fails part-way, the tokens already processed before the failure are charged.
Is Grok Imagine Image 2.0 included in Token Plans?
No. Grok Imagine Image 2.0 is pay-as-you-go only; Token Plans cover the other models in the catalog.
Is it the real Grok Imagine Image 2.0?
Yes. A request for grok-imagine-image-2-0 is answered by Grok Imagine Image 2.0 from xAI, billed at its published list price. Inferray never substitutes a different or smaller model.