GizStackGizStackGizStack
Sign inStart free

← All models

XAGrok Imagine Image 2.0

xAI · Image · about $0.055 a request · 11 routes

Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...

Model ID x-ai/grok-imagine-image-2.0

Quick try

Quickstart · API, SDK & MCP

sh
curl https://gizstack.com/v1/generations \
  -H "Authorization: Bearer $GIZSTACK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "x-ai/grok-imagine-image-2.0", "prompt": "A cinematic shot of a sunlit studio", "wait": 30}'
python
from openai import OpenAI

client = OpenAI(base_url="https://gizstack.com/v1", api_key="$GIZSTACK_API_KEY")
res = client.images.generate(model="x-ai/grok-imagine-image-2.0", prompt="A sunlit studio")
print(res.data[0].url)
sh
claude mcp add --transport http gizstack https://gizstack.com/v1/mcp \
  --header "Authorization: Bearer $GIZSTACK_API_KEY"

Request fields

FieldValuesDefault
promptlong
outputFormatpng, jpeg, webp, JPG, PNG, WEBPJPG
resolution1K, 2K, 1k, 2k, 4k1k
aspectRatio1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, auto, 21:9, 5:2auto
qualitylow, medium, auto, highlow
numberResults11
inputReferencesfiles
sizeauto, 1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 1152x2048, 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 1024x1792, 1792x1024, 720x1280, 1280x720, 1:2, 2:1, 4:51024x1024
imagefiles
imagesfiles
widthnumber1024
heightnumber1024
outputQualitynumber
formatJPG, PNG, WEBPJPG