Image model by xAI

Grok Imagine Image Pro API

model: grok-imagine-image-pro

Call Grok Imagine Image Pro with your KeelRouter API key, the same key you use for every other model. From $0.032 per image, paid per call from a prepaid balance. Failed calls are free.

Pricing

OptionPrice
1K$0.032 per image
2K$0.032 per image

Call it

Async: POST /v1/images/generations returns a taskId; poll the same path with ?task_id= or pass a callback_url.

curl https://api.keelrouter.com/v1/images/generations \
  -H "Authorization: Bearer $KEELROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image-pro",
  "prompt": "A lighthouse at dawn, watercolor",
  "resolution": "1k"
}'

Parameters

NameTypeNotes
modelstringRequired. grok-imagine-image-pro
promptstringRequired.
image_urlstring
image_urlsarrayRange …–3.
resolutionstringOne of 1k, 2k. Default 2k.
aspect_ratiostringOne of 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20, auto. Default 1:1.
nintegerRange 1–1. Default 1.
callback_urlstringOptional https URL; we POST the result when the task ends

FAQ

How much does the Grok Imagine Image Pro API cost on KeelRouter?
From $0.032 per image. You pay per call from a prepaid USD balance; failed calls are not charged.
How do I call Grok Imagine Image Pro?
POST to /v1/images/generations with model "grok-imagine-image-pro". You get a taskId back; poll the same endpoint with ?task_id= or pass a callback_url.
Is this the official Grok Imagine Image Pro API?
No. KeelRouter is an independent API gateway. Requests run on Grok Imagine Image Pro through our upstream providers, and the image model keeps its own safety filters.
How long are results kept?
Result files are kept for 30 days, then deleted. Download what you want to keep.

More from xAI

KeelRouter is an independent service and is not affiliated with xAI. Grok Imagine Image Pro is a trademark of its owner, used here only to name the model a request runs on.