Grok Imagine API Now on reAPI: Flat Per-Image Pricing
Grok Imagine API is live on reAPI: xAI's image models at a flat price per image, two quality tiers, up to 10 images per request, 1k or 2k, and image editing.
What's new
xAI's Grok Imagine image models are now on reAPI under the model id grok-imagine. They run on the same /api/v1/images/generations endpoint as every other image model on the platform, so an existing integration only needs a new model id. No new endpoint.
Pricing is simple. One flat rate per delivered image on each tier, and aspect ratio, resolution and editing never change what an image costs.
Pricing
| Tier | quality value | Credits per image | USD per image |
|---|---|---|---|
| Standard | standard (default) | 10 | $0.01 |
| High | high | 5 | $0.005 |
That is the whole price list. $1 buys 1,000 credits and credits never expire. A failed generation refunds its credits automatically, so you only pay for images that are actually delivered.
What you can do
- Generate up to 10 images per request. Set
nbetween 1 and 10. Each delivered image is billed at the tier's flat rate. - Choose from 14 aspect ratios.
1:1,3:4,4:3,9:16,16:9,2:3,3:2,9:19.5,19.5:9,9:20,20:9,1:2,2:1, orauto. - Pick 1k or 2k output. Set
resolutionto1k(default) or2k. Both cost the same. - Edit an existing image. Pass one public image URL in
image_urlsand describe the change inprompt. The request switches to editing on the same tier at the same rate. - Prompts up to 10,000 characters.
Quick start
curl https://reapi.ai/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine",
"prompt": "A product photo of a matte black wireless speaker on a concrete plinth, soft window light, shallow depth of field",
"quality": "standard",
"n": 4,
"aspect_ratio": "1:1"
}'
The response returns a task_id. Poll it until the task completes, then read the image URLs from the result, one entry per delivered image.
One call from you is one generation attempt. Nothing is retried silently. Your usage is exactly what you sent.
Links
- Model page and live pricing: reapi.ai/models/grok-imagine
- API reference: reapi.ai/docs/grok-imagine
- Try it in the playground on the model page with your starter credits