Platform
Catalog/Edit image/Grok Imagine 2.0 Edit
IMAGE → IMAGE · xAI

Grok Imagine 2.0 Edit

Grok Imagine 2.0 Edit uses xAI's Grok Imagine 2.0 to change elements, styles and details of an existing image from a text instruction, at 1K or 2K with low and medium quality settings.
PRICE0.1223 creditsper image
AVG TIME~15sestimate
OUTPUTimagesync
Open in playground

Inputs

promptrequired · text
imagerequired · Image — artifact id or https URL
params.aspect_ratioauto | 1:1 | 4:3 | 3:2 | 16:9 | 2:1 | 19.5:9 | 20:9 | 21:9 | 5:2 | 3:4 | 2:3 | 9:16 | 1:2 | 9:19.5 | 9:20 · default auto
params.resolution1K | 2K · default 1K
Monthly estimate
1,000 × 0.1223 credits122.30 credits
curl https://platform.4i.app/api/v1/run \
  -H "Authorization: Bearer $FOURI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service": "xai/grok-imagine-2-0-edit",
    "input": {
      "prompt": "Describe the edit…",
      "image": "img_… or https://…"
    },
    "params": {
      "aspect_ratio": "auto",
      "resolution": "1K"
    }
  }'
Every output has an artifact_id. Pass it as input to any compatible service.
Get your API key →