Models
Grok Imagine
StableStylized creative image generation at 2K. Optional references — note: when you add a reference image the output size matches that image and the size picker is ignored. Strict content moderation; explicit references or outputs are refused at generation time.
Product id
grok-imagine
Price
$0.11 / call
Output
image (jpeg)
Avg latency
~45s
Parameters
Inputs
Send these in the JSON body of a POST /v1/generations request alongside "product": "grok-imagine".
Text prompt that describes what to generate. 1–4000 characters. Be specific — subject, lighting, lens, mood, action.
portraitOutput aspect ratio. `portrait` is best for character shots; `landscape` for scene compositions.
Deterministic seed. Same seed + same prompt = same image. Omit for a random seed.
HTTPS callback fired when the job reaches a terminal state. HMAC-SHA256 signed. See the Webhooks guide.
Arbitrary JSON object echoed back on retrieval and in the webhook. Useful for correlating jobs to your records. ≤ 4 KB.
Related
Reference
- POST /v1/generations — full reference for the create endpoint.
- Playground — try this model inline with your key.