grok-image API
xAI's image generation model. It leans photorealistic and handles prompts about current events and popular culture comparatively well.
Read https://wanapi.ai/SKILL.md and https://wanapi.ai/model/grok-image.md, then configure WanAPIs for grok-image
Live Cost Estimator
¥1 = $1 quotaAdjust parameters to preview live WanAPIs quota, RMB real cost, and approx. USD (~86% off USD parity).
curl https://api.wanapis.com/v1/chat/completions \
-H "Authorization: Bearer $WANAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-image",
"messages": [
{"role": "user", "content": "Explain the key trade-offs of microservices in 3 bullets.
]
}'About grok-image
xAI's image generation model. It leans photorealistic and handles prompts about current events and popular culture comparatively well.
Capabilities
- Text-to-image
- Reference image
grok-image FAQ
How do I call grok-image via WanAPIs?
Send an authenticated request with Authorization: Bearer <WANAPIS_API_KEY> to https://api.wanapis.com using POST /v1/chat/completions and model "grok-image".
How much does grok-image cost on WanAPIs?
Current live rate: $75.00 / 1M tokens. WanAPIs uses RMB-anchored quota (¥1 = $1 quota, roughly 1/7 or ~86% off USD-denominated list pricing) with zero monthly subscription.
Can AI coding agents (Claude Code, Codex, Cursor) discover and use this model?
Yes. Point your agent to https://wanapi.ai/SKILL.md or install npx -y @wanapis/mcp. A machine-readable Markdown spec is also available at /model/grok-image.md.
More xAI models
Integrate grok-image in minutes
Sign up for starter credit — change one base_url line or hand SKILL.md to your AI agent.