GizStackGizStackGizStack
Sign inStart free

← All models

XAGrok Imagine Image

xAI · Image · about $0.033 a request · 7 routes

Generate high-quality images from text prompts with xAI's imagine API.

Model ID xai:grok-imagine@image

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": "xai:grok-imagine@image", "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="xai:grok-imagine@image", 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
numberResults11
referenceImagesfiles
imagefiles
imagesfiles
size1:1, 16:9, 9:16, 3:2, 2:31:1
widthnumber1024
heightnumber1024
resolutiontext
outputFormatJPG, PNG, WEBPJPG
outputQualitynumber
aspectRatiotext
formatJPG, PNG, WEBPJPG