SPARROWCODES

Grok Imagine Image 2.0

Coming soon
x-ai/grok-imagine-image-2.0

xAI's newest image model, with low and medium quality settings.

  • Image

Pricing

Price
$0.04 per image

What it costs

One image$0.04
1,000 images$40.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, 1.5k, 2k
Quality
low, medium
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-2.0", "prompt": "A lighthouse at dawn, watercolor", "n": 1}'

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