SPARROWCODES

Grok Imagine Image

Coming soon
x-ai/grok-imagine-image

Fast image generation from xAI. Billed at xAI's reported cost per image.

  • Image

Pricing

Price
$0.02 per image

What it costs

One image$0.02
1,000 images$20.00

Specifications

Type
Image
Served by
xAI
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, 21:9, 5:2
Resolutions
1k, 2k
Images per request
Up to 10

Use it

curl https://api.sparrowcodes.com/v1/images/generations \
  -H "Authorization: Bearer $SPARROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "x-ai/grok-imagine-image", "prompt": "A lighthouse at dawn, watercolor", "n": 1}'

Set "model" to x-ai/grok-imagine-image. The response includes its exact cost.