Give it a prompt, or a prompt and up to 3 images (5 on v2.0); get one JPEG per call at about 1 MP. Three tiers:
| Tier | Text-to-image | Edit | Pick it when |
|---|---|---|---|
| quality | $0.055 (1k), $0.077 (2k) | $0.066, $0.088 | Cheap finished stills; best face in the compose |
| v2.0 | $0.066 (1k), $0.088 (1.5k, 2k) | $0.077, $0.099 | The same, or up to 5 references |
| base | $0.022, any size | $0.024 | Rough drafts only |
In a test of 113 image models (one or two runs per probe, judged by eye), all three tiers spelled a three-line poster exactly on both runs and placed five objects right. Quality and v2.0 also counted three apples and two pears right on both runs, drew natural skin, changed a sign's word exactly on both runs, removed a man and added one bike, and made a convincing claymation figure with the likeness close. Base miscounted on both runs even with an extra count line, smoothed the skin with light makeup, left an extra-wide gap before "BAKERY" in the sign edit, and only part-clayed the face. Every tier's edits redraw the whole frame with small drift. xAI rewrites every prompt, with no switch.
Instead: for an edit that must leave the rest pixel-exact, seedream-5-make-and-edit-images
(Seedream 5.5); for a compose where face and label must both be exact,
gpt-image-2-make-and-edit-images; for Google's models the nano-banana-* leaves; to
choose, guide-choose-an-image-model.
Run it
Call describe on the model before the first run in a job.
run("fal/xai/grok-imagine-image/quality/text-to-image", {
"prompt": "<prompt, see below>",
"aspect_ratio": "3:4",
"resolution": "1k"
}, into="<job>/stills", unit="poster_grokq", tag="poster")
run("fal/xai/grok-imagine-image/quality/edit", {
"prompt": "<edit prompt, see below>",
"image_urls": ["<job>/refs/street.png"]
}, into="<job>/stills", unit="street_fix_grokq", tag="street_fix")
v2.0: fal/xai/grok-imagine-image/v2.0/text-to-image and .../v2.0/edit. Base:
fal/xai/grok-imagine-image (text-to-image) and fal/xai/grok-imagine-image/edit.
aspect_ratio:1:1(default on text-to-image),16:9,9:16,4:3,3:4,3:2,2:3,2:1,1:2,20:9,19.5:9and their inverses; v2.0 adds21:9and5:2. Edits default toauto, which follows the first image. Send it on text-to-image.resolution:1k(default),2k; v2.0 also1.5k. Base costs the same at any size; quality and v2.0 charge more above 1k (table above).quality(v2.0 only):low,medium(default) orauto, which means low. Leave it at medium; the test did.image_urls: up to 3 on base and quality, 5 on v2.0. The schema doesn't require it on the edit endpoints: check you sent it, or you get a new picture, not an edit. More references bill more: the three-image compose cost $0.09 on quality and $0.10 on v2.0, against $0.07 and $0.08.- The prompt is always rewritten by xAI (the reply carries
revised_prompt); there is no switch. Exact quoted text still held on quality and v2.0. - No seed, no negative prompt.
num_images: 4 on base and quality, 10 on v2.0 (hn4a makes at most 8 a call).output_format:jpeg(default),png,webp.
Prompt
xAI's Grok Imagine image prompting guide and its multi-image editing page (checked 2026-12-04): write prose, not instructions. Open with one sentence naming the subject, its form and the setting, then details and the focal point, art direction, light, colour and composition, in that order: four to six sentences for one still. Name each element, its material and its count. Text isn't covered; quote it and say where it goes.
- Edit: lead with one to three changes, then one sentence that keeps the rest ("Keep the same …"). Don't open with "keep everything" and don't paste a whole new prompt.
- References: there is no citation syntax; describe each by content and order ("the bearded man from the first image").
- Negatives: only for a count or a specific object, paired with the positive.
The sign edit, as sent:
Change the words on the green sign above the bakery door to "MAPLE & OAK BAKERY", in the same cream lettering and font. Keep the same window lettering, the same man in the navy coat, the same brick, the same angle and the same light.
The three-reference compose, as sent (image_urls: man, can, café):
The bearded man from the first image sits at the café table by the rainy window from the third image, holding the matte black can from the second image at chest height with its "NORTHWIND COLD BREW" label facing the camera. Keep the same face, the same beard, the same sweater, and the same label exactly.
Text-to-image used the plain prose prompts; the fruit prompt ended with "One small brass key, not two; exactly five fruit on the plate."
What held, and what didn't:
- Poster text: all three lines exact on both runs on every tier. Base's dash may be a hyphen (unsure at zoom). "A simple … line illustration" came back as a shaded engraving on quality and v2.0; write "outline only, no fill or shading".
- Counts: quality and v2.0 right on both runs (the plate came out slate-blue). Base wrong on both: a russet third pear, then four apples.
- Skin: natural pores and lines on quality and v2.0; base warm and smoothed, with defined lashes.
- Placement: 5 of 5 on every tier; base drew everything small in an empty frame.
- Sign edit: quality and v2.0 exact on both runs. Base got the letters right but left a double-width gap before "BAKERY" on both runs.
- Remove and add: clean removal and one bike left of the door on every tier (quality added a basket).
- Compose: all three references used on every tier. Face the same on quality, close on v2.0 and base. Quality's thumb hid the "C" of "COLD"; v2.0 swapped the reference café table for a marble one; base had him hold the can in two hands.
- Claymation: convincing with the likeness close on quality and v2.0; base kept a photo with clay bits in the beard.
What you get
One JPEG per image at 1k: 864×1152 for 3:4, 1024×1024 for 1:1, 1280×720 for 16:9. An edit
of a 1920×1080 source came back 1280×720, a smaller copy: ask resolution: 2k when the
edit must keep the source's detail. Charged in the test: base $0.03, quality $0.06 (text)
and $0.07 (edit), v2.0 $0.07 and $0.08.
Examples
Test images from the prompts above.
Three red apples, two green pears, a key left of the plate (quality: right on both seeds).
Three-line bakery poster (v2.0: all three lines exact).
Portrait restyled as claymation (quality).
Tips and traps
- The rewrite can't be turned off: check every quoted word in the result.
- Edits come back at 1k unless you ask for 2k; a 1080p source loses detail.
- For a hand-held product, say which hand holds it and that the label is fully visible ("fingers behind the can, the whole label facing the camera"; untested).
- Base is cheap but miscounts and smooths skin: use it for layout drafts only.
Check it
- Text: read each line at 3× zoom, spaces between words included.
- Counts: count each object by eye.
- Edits: put the source and the result side by side with
python-contact-sheetand look for drift outside the change. - Compose: compare the face, the label and the set with their references.


