Seedance 2.5 is live — 30-second cinematic video with native audio & real-person references
All announcements
Release

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

Tierquality valueCredits per imageUSD per image
Standardstandard (default)10$0.01
Highhigh5$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 n between 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, or auto.
  • Pick 1k or 2k output. Set resolution to 1k (default) or 2k. Both cost the same.
  • Edit an existing image. Pass one public image URL in image_urls and describe the change in prompt. 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