xAIImagegrok-image

grok-image API

xAI's image generation model. It leans photorealistic and handles prompts about current events and popular culture comparatively well.

Give this to your agent·Claude Code·Codex·Cursor·OpenClaw / Hermes

Read https://wanapi.ai/SKILL.md and https://wanapi.ai/model/grok-image.md, then configure WanAPIs for grok-image

Token Pricing (1M)
$75.00 / $75.00
≈ $10.71 / $10.71 USD
Provider
xAI
Unified billing
API Endpoint
/v1/chat/completions
OpenAI-compatible
Billing Rate
¥1 = $1 quota
~86% off USD parity

Live Cost Estimator

¥1 = $1 quota

Adjust parameters to preview live WanAPIs quota, RMB real cost, and approx. USD (~86% off USD parity).

1
10K
2K
10K input + 2K output tokens
¥0.9
≈ $0.129 USD
($0.9 quota)
1,000 similar requests ≈ ¥900 (~$128.57 USD)
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.
    ]
  }'
Drop-in OpenAI SDK · swap base_url onlyhttps://api.wanapis.com/v1

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.