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 Cloakray 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 Cloakray key.

/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/generations \
  -H "Authorization: Bearer ckr_..." \
  -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.cloakray.com/v1/images/edits \
  -H "Authorization: Bearer ckr_..." \
  -F 'model=grok-imagine-image-2-0' \
  -F 'prompt=Make the background blue' \
  -F 'image=@input.png'

More from xAI