Grok Imagine 2.0

Vendor: xAI

Image

Fast creative generation with a distinctive visual style

Typical latency
10-20s
Reference inputs
Up to 3
toolId
grok-imagine

Input modes

text-to-imageimage-to-image

Parameters

ParameterTypeDefaultValuesNotes
aspect_ratioselect1:1auto | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 2:1 | 1:2 | 20:9 | 9:20 | 19.5:9 | 9:19.5Output frame shape. Auto follows the reference image when editing.
resolutionselect1k1k | 2kOutput detail level; 2k renders finer detail at higher cost.
num_imagesselect11 | 2 | 3 | 4How many variations to generate in one run. More images cost more; re-quote after changing.
qualityselectlowlow | medium—

Pricing

Pricing will be published shortly — contact us for early access rates

Prices last updated: —

API example

POST /v1/generations — grok-imagine
curl -X POST https://api.mukelabs.com/v1/generations \
  -H "Authorization: Bearer $MUKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toolId": "grok-imagine",
    "inputMode": "text-to-image",
    "prompt": "your prompt here",
    "params": { "aspect_ratio": "auto" },
    "references": [],
    "idempotencyKey": "a-unique-key-per-task",
    "subjectId": "your-user-id"
  }'

FAQ

How do I call Grok Imagine 2.0 on Muke Labs?
Submit POST /v1/generations with toolId "grok-imagine" and one of its input modes (text-to-image, image-to-image), then poll GET /v1/generations/{jobId} for the result.
What does Grok Imagine 2.0 cost?
Public pricing for this model is being finalized — contact us for early access rates. All tasks are billed from your prepaid USD balance and failed tasks refund automatically.
What happens if a task fails?
The job returns status "failed" with a typed error code, and its charge is returned to your balance automatically.
Where do I get an API key?
Create one in the developer portal (https://portal.muke.name), then send it as a Bearer token on every request.

Related models