XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
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://api.dflop.top/v1
cURL
curl https://api.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) FAQ

How do I call Grok Imagine (Image · Quality)?
Set the model field of the request body to grok-imagine-image-quality, send it to https://api.dflop.top/v1/images/generations, and put your key (it starts with sk-gpushare-) in the Authorization: Bearer header. This is not a chat SKU; submit tasks to the dedicated endpoint above.
How much does the Grok Imagine (Image · Quality) API cost?
  • ·Per output image: 18 credits (≈ ¥0.3 / ≈ $0.045)
  • ·Prices are in credits: 60 credits = ¥1. Each call first holds the most it could cost, then settles on actual usage and refunds the difference.
What can Grok Imagine (Image · Quality) do?
Image generation.

Markdown version of this page (Chinese): /models/grok-imagine-image-quality.md

Related

  • All xAI models