XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
Model catalogueGrok Imagine (Image · Quality)

Grok Imagine (Image · Quality)

Model ID

Put this value in the request body's `model` field — not the display name above.

Image generationClosed source

by xAI · xAI Grok Imagine image generation (high quality). /v1/images/generations.

Try it now

Quick start

EndpointPOST /v1/images/generations
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://usapi.dflop.top/v1
cURL
curl https://usapi.dflop.top/v1/images/generations \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-quality",
    "prompt": "一只在竹林里喝茶的熊猫,水彩风格",
    "size": "2048x2048",
    "n": 1
  }'

# 图生图:再加 "image": ["https://.../ref.jpg"](参考图按张另计费)
# 返回的图片 URL 是上游预签名链接,约 24 小时过期 —— 请尽快转存

Pricing

Billed per output image: a request generating n images is billed at unit price × n.

Rates
per image 18Credits
Settlement
Settled once on success against the images actually returned (no hold, no difference to refund)
  • Before submitting we only check that your balance covers unit price × n — nothing is held. You are charged once, on success, for the images actually returned; failures are not billed.
  • Returned image URLs are upstream presigned links that expire in about 24 hours — re-host them promptly.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Image generation
Endpoint family
Image generation (Images)
Released
2025-01-01
License
Closed source

Try it

Models like this bill for real per image / per second / per call and are mostly async tasks, so there is no one-click test here. Use the sample code above, or generate in the matching workbench (which has a parameter panel and a cost estimate).

Open the workbench

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Grok Imagine (Image · Quality)→✓ grok-imagine-image-quality

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

`size` is below this SKU's minimum, or `n` exceeds the limit of 10.

→ Check your request body against the sample code above

More models from this vendor

Grok 4.5grok-4.5Grok 4.6grok-4.6Grok 4.7grok-4.7Grok Imagine (Image)grok-imagine-imageGrok Imagine Videogrok-imagine-videoGrok Imagine Video 1.5grok-imagine-video-1.5-preview
Try it

关于 Grok Imagine (Image · Quality) 的常见问题

怎么调用 Grok Imagine (Image · Quality)?
请求体的 model 字段填 grok-imagine-image-quality,打到 https://usapi.dflop.top/v1/images/generations,把 sk-gpushare- 开头的密钥放进 Authorization: Bearer 请求头。这是非对话类 SKU,用上面的专用端点提交任务。
Grok Imagine (Image · Quality) 的 API 价格是多少?
  • ·每张出图:18 积分(≈ ¥0.3 / ≈ $0.045)
  • ·平台以积分计价,60 积分 = ¥1;每次调用先按上限预扣,返回后按实际用量结算,差额自动退回。
Grok Imagine (Image · Quality) 支持哪些能力?
图像生成。

本页的 Markdown 版本:/models/grok-imagine-image-quality.md