Models

Grok Imagine

Stable

Stylized 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".

promptstringRequired

Text prompt that describes what to generate. 1–4000 characters. Be specific — subject, lighting, lens, mood, action.

aspectstringOptionalDefaults to portrait

Output aspect ratio. `portrait` is best for character shots; `landscape` for scene compositions.

seedintegerOptional04,294,967,295

Deterministic seed. Same seed + same prompt = same image. Omit for a random seed.

webhook_urlurlOptional

HTTPS callback fired when the job reaches a terminal state. HMAC-SHA256 signed. See the Webhooks guide.

metadataobjectOptional

Arbitrary JSON object echoed back on retrieval and in the webhook. Useful for correlating jobs to your records. ≤ 4 KB.

Kiara API — image & video generation for your business.