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.
| Metric | Price |
|---|---|
| / 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
Grok 4Grok 4 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$3 / 1M input tokens · $15 / 1M output tokens · See all rates on the model pageGrok 4.1 Fast ReasoningGrok 4.1 Fast Reasoning for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$0.2 / 1M input tokens · $0.5 / 1M output tokens · See all rates on the model pageGrok 4.20 Beta Non-Reasoning (0309)Grok 4.20 Beta Non-Reasoning (0309) for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$2 / 1M input tokens · $6 / 1M output tokens · See all rates on the model page