Grok Imagine Image 2.0 API
xai/grok-imagine-image-2
Generate images with Grok Imagine Image 2.0 by xAI through the Solo Router API. $0.078 / image, billed from prepaid credit.
Price
$0.078
per image
Example request
curl https://solorouter.ai/api/v1/images/generations \ -H "Authorization: Bearer $SOLO_KEY" -H "Content-Type: application/json" \ -d '{"model": "xai/grok-imagine-image-2", "prompt": "a lighthouse at dusk", "size": "1024x1024"}'
More from xAI
| Model | Context | Input / 1M | Output / 1M | Cached / 1M |
|---|---|---|---|---|
Grok Imagine Image 2.0 Edit xai/grok-imagine-image-2-edit · images |
— | from $0.091 / image | ||
Frequently asked questions
How much does Grok Imagine Image 2.0 cost?
$0.078 / image, billed from prepaid credit with no monthly fee.
How do I use the Grok Imagine Image 2.0 API?
Sign in to Solo Router with Google, create an API key and send "model": "xai/grok-imagine-image-2" to the endpoint shown in the example above.
Get your API key in 30 seconds
Sign in with Google. New accounts get free credit (one per person) to try the models.
Get started free