Grok Imagine Image API
- Per image
- $0.020
- Context
- 2K
No gateway feesPay-as-you-go only
Grok Imagine Image for OpenAI-style Image Generation, Image editing.
Explore Grok Imagine Image 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
Grok Imagine Image API pricing
What each generation costs. The Inferray price is what you are charged — no gateway fee is added on top of it.
| Metric | Price |
|---|---|
| / 1M image input tokens | $2000 |
| / request | $0.02 |
Grok Imagine Image is pay-as-you-go only
Grok Imagine Image is not included in Token Plans. Call it from a pay-as-you-go balance at the list price above, with no gateway fee.
Why teams pick it
- Grok Imagine Image for OpenAI-style Image Generation, Image editing.
Call Grok Imagine Image
Grok Imagine Image 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",
"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' \ -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
Alternatives to Grok Imagine Image
- Seedream 5.0 FlashSeedream 5.0 Flash for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.ByteDance
- GLM-ImageGLM-Image for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.Z.ai
- Hy Image 3.5 PreviewHy Image 3.5 Preview for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.Tencent Cloud
Questions about this model
- How much does the Grok Imagine Image API cost?
- Grok Imagine Image costs from $0.020 per image on Inferray, the list price with no gateway fee on top.
- Is there a free tier for Grok Imagine Image?
- No. You add credit and pay Grok Imagine Image'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 included in Token Plans?
- No. Grok Imagine Image is pay-as-you-go only; Token Plans cover the other models in the catalog.
- Is it the real Grok Imagine Image?
- Yes. A request for grok-imagine-image is answered by Grok Imagine Image from xAI, billed at its published list price. Inferray never substitutes a different or smaller model.
Prices from the catalog as of November 12, 2026.