Grok Imagine 2.0 Image API
Generate batches of images from a text prompt in common aspect ratios.
- Text to image
Starting at
$0.021
per generation
Grok Imagine 2.0 Image playground
Output

Output will appear here.
Check the price and run the model. Your result will appear here; browser use does not need an API key.
Grok Imagine 2.0 Image API pricing
| Option | Price per generation |
|---|---|
| Standard | $0.021 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/generation/create \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "grok-imagine-2.0-image",6 "input": {7 "prompt": "A cinematic shot of a city at dusk",8 "size": "1:1"9 }10 }'
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Text description for image generation |
size | string | No | 1:1 | Image aspect ratioOne of: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 |
Frequently asked questions
How much does Grok Imagine 2.0 Image cost?
Grok Imagine 2.0 Image starts at $0.021 per generation on API Stock. The final charge depends on the selected settings.
When was Grok Imagine 2.0 Image released?
Grok Imagine 2.0 Image was released on August 7, 2026 and is available through API Stock.
How do I get an API key for Grok Imagine 2.0 Image?
Create an account and API key on API Stock, then fund your balance. The same key works with Grok Imagine 2.0 Image and other catalog models.
How do I call the Grok Imagine 2.0 Image API?
POST to https://api.api-stock.com/api/v1/generation/create with your API key and model "grok-imagine-2.0-image". Use the returned task id for polling or receive a webhook.
What input parameters does Grok Imagine 2.0 Image accept?
Grok Imagine 2.0 Image accepts 2 input parameters, including the required field(s) prompt. See their types, defaults and allowed values above.
What happens if a Grok Imagine 2.0 Image request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use Grok Imagine 2.0 Image with the same API key as other models?
Yes. Use your API Stock API key and balance for Grok Imagine 2.0 Image and other catalog models.
Other Image models
- GPT Image 2.6 FlareOpenAI$0.013/ generation
- GPT Image 2.6 SunburstOpenAI$0.013/ generation
- Nano Banana 2.1Google$0.014/ generation
- Nano Banana 2Google$0.018/ generation
- Grok Imagine 1.5 ImagexAI$0.021/ generation
- Seedream 5.0 FlashByteDance$0.021/ generation
- Seedream 5.5ByteDance$0.028/ generation
- Wan 2.7 ImageAlibaba$0.029/ generation
- Nano Banana ProGoogle$0.029/ generation
Read next
Guides
- Image generationWhich image model to use for the picture you need, prompts that produce it, batching for variants, and the API run from prompt to file URL.8 min read
- Image editingEditing photos with references instead of prompts — background swaps, product composites, style matching, and the Midjourney action chain from imagine to inpaint.8 min read
- GPT Image 2.5 — Sunburst, Flare, prompts and real examplesChoose a GPT Image model, compare Sunburst and Flare, copy four practical prompts, inspect six real renders, and generate or edit images through API Stock.9 min read

