Grok Imagine API
AI ImageThe Grok Imagine API is xAI's entry image route on OmniaKey, turning text prompts into images through the same asynchronous, per-call media API.
- Per successful call$0.04
- OperationsText to image
- View tool pricing and billing rules
Your result will appear here once you run the model.
01
Where it fits
The Grok Imagine API is xAI's entry image route on OmniaKey, turning text prompts into images through the same asynchronous, per-call media API.
Choose Grok Imagine for text-to-image drafts with xAI's original image model. All three Grok image models share the same per-call price.
02
What it does
Text to image
grok-imagine-image
Turn a text prompt into a new image.
03
In depth
Grok Imagine is xAI's original image model on OmniaKey, listed as grok-imagine-image. It turns a text prompt into a picture through the asynchronous media task API, and text-to-image is the whole capability list: no edit operation. xAI opened the Grok Imagine API on 28 January 2026, and this is the model that shipped with it.
Keep it for two jobs: a draft round where many directions matter more than polish, and a project whose existing look came from this model and should not shift. It follows a written prompt closely — our earbud shot had every requested detail and both poster lines were spelled right — but frames loosely, with subjects that sit small in the picture. For anything new, Grok Imagine 2.0 is the better default.
In our three-model run on 18 October 2026 it was the only one that stood the pears upright in the counting test, and its fisherman photo kept the whole dock in focus where shallow depth of field was asked for. The coffee-shop poster needed no text fixing, which makes it workable for a simple flyer even when the framing is plain.
Cheap draft rounds
Run ten directions before anyone commits to a look. The catalog lists one flat per-call rate for all three Grok image models, so a wide first round costs the same as a narrow one. Keep the prompts short and judge the set for direction rather than finish.
Reprints in an older look
Rebuild a series that was first drawn on this model, with the same prompt patterns and framing habits. The catalog's own note is to keep it for an existing look, because a new generation changes the styling. A sequel set or a reprint is safest on the model that made the originals.
Simple flyers with two lines
Ask for a poster with a headline and one smaller line. Ours came back with both lines spelled correctly and needed no repair. Keep the layout plain and the text to two lines, and expect the composition to be loose around them.
04
Hands-on notes
In our counting test, the original Grok Imagine placed three apples and two pears correctly but showed the pears standing upright rather than from above.
Read the testIn our coffee-shop poster test, the original Grok Imagine spelled both requested lines correctly, so the poster text needed no fixing.
Read the testIn our earbud product shot, the original Grok Imagine got every requested detail right but left the case small in the frame.
Read the testOur fisherman photo from the original Grok Imagine had believable golden light, but the whole dock stayed in focus instead of a shallow depth of field.
Read the testAcross our three-model Grok test, every image came back between 7 and 18 seconds after the request.
Read the test
05
Limits to plan around
- Generation only. No edit operation is listed for this id, so changing a background means writing a new prompt rather than altering the file you already have.
- It frames loosely: our earbud case sat small in the frame, and the fisherman's dock stayed fully sharp when the prompt asked for shallow depth of field.
- Shape comes from the model when no aspect setting is sent. Our unset runs ranged from portrait 832×1248 to 1280×720, all near one megapixel, so a fixed banner size needs a check afterwards.
- One of our 14 Grok jobs failed with a 400 and was refunded, and the identical retry worked, so a batch needs a retry step instead of a fail-fast loop.
06
Compare nearby models
| Model | Best for | Operations | Listed price |
|---|---|---|---|
| Grok ImagineThis page grok-imagine-image | Draft rounds and reprints that must keep the older Grok look, at one flat per-call rate. | Text to image | $0.04 per call |
| Grok Imagine 2.0 grok-imagine-image-2.0 | New work: better layout, real depth of field and an aspect setting that holds a series together. | Text to image | $0.04 per call |
| Nano Banana 2.1 gemini-nano-banana-2.1 | Photoreal scenes with location detail and frames larger than one megapixel. | Text to image · Image edit | $0.019–$0.039 per call |
07
Sources and verification
Guide updated 2026-10-27.
08
Call it
Media models run asynchronously. Create a task, poll it until it finishes, then download the signed asset URL.
# 1. Create the job. 202 Accepted; the body carries the task id,
# the pre-charged price, and a poll_url. Reuse one Idempotency-Key
# across retries so a timeout never starts a second paid job.
curl --fail-with-body https://api.omniakey.com/v1/media/tasks \
-H "Authorization: Bearer $OMNIAKEY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: grok-imagine-image-001" \
-d '{
"model": "grok-imagine-image",
"type": "image",
"operation": "generate",
"input": {"prompt": "a paper boat on a quiet lake at sunset"},
"parameters": {"size": "1024x1024", "quality": "medium"}
}'
# 2. Poll GET /v1/media/tasks/{id} until status is
# succeeded | failed | canceled. Progress carries percent and stage.
curl --fail-with-body https://api.omniakey.com/v1/media/tasks/TASK_ID \
-H "Authorization: Bearer $OMNIAKEY_API_KEY"
# 3. Download assets[0].url before expires_at, or poll again for a
# fresh signed URL. Failed and canceled jobs are refunded.
curl -sS -o out.png "$(jq -r '.assets[0].url' result.json)"09
Pricing
Image jobs are billed per successful call, not per token. Failed or canceled jobs are refunded automatically.
$0.04per call
More xAI image models
Related articles
Grok Imagine API: Python Guide and 3 Models Tested Side by Side
Three Grok image models, the same four prompts. Here is which to use.
Read articleGrok Imagine 2.0 Prompt Guide: Structure, Examples and Real Images
Eight recipes with real images: what Grok Imagine 2.0 followed, what it added and how to steer it.
Read articleFrequently asked questions
How do I call Grok Imagine on OmniaKey?
POST to /v1/media/tasks with the model id, type "image", and operation "generate" or "edit". Reuse one Idempotency-Key across retries so a timeout never starts a second paid job.
What does Grok Imagine cost?
Grok Imagine bills $0.04 per call. Creation pre-charges that amount from your prepaid balance, and failed or canceled jobs are refunded automatically.
Why does the API return a task id instead of the image?
Provider latency runs from seconds to about a minute, so OmniaKey normalizes every image route into one asynchronous lifecycle. Poll GET /v1/media/tasks/{id} until the status is succeeded, then read the signed asset URL.
Is the original Grok Imagine still available?
Yes. The catalog marks grok-imagine-image as available, and it sits beside Grok Imagine 2.0 at the same per-call rate. It is the older of the two and generates new pictures only, so pick it for drafts or for a look you want to keep, not for edits.
Can Grok Imagine edit an image through OmniaKey?
No. Only text-to-image is listed, so an edit request will not run here. xAI's own API does offer edits on Grok Imagine 2.0, but that capability is not part of this model's offering. For background changes, use a model with image-edit listed, such as Nano Banana 2.1 or Seedream 5.0 Pro.
What size are Grok Imagine images?
Around one megapixel, with the model choosing the shape when you send no aspect setting. Our unset runs produced 832×1248 portrait, 1248×832 landscape and 1280×720 files. If a fixed ratio matters, generate, then crop, or move the job to Grok Imagine 2.0.
How is Grok Imagine billed?
The catalog prices it per call, once for each image, and lists the same rate for all three Grok image models. OmniaKey charges the task at the rate shown on the model page, and a failed task is refunded. The current figure is in the price table.
How do I call the original Grok Imagine from code?
Post a task to https://api.omniakey.com/v1/media/tasks with model set to grok-imagine-image, type image and operation generate, plus an Idempotency-Key header. Poll GET /v1/media/tasks/{id} until the status is succeeded, then download assets[0].url, because the signed link expires.
