Skip to content
youbot
Z-Image cover

Z-Image API

z-image
QwenCommercial use API verifiedImage generationAspect ratios

Z-Image — fast, high-fidelity AI image generation & editing.

by Qwen

Get Your API Key
View as Markdown

Pricing: Z-Image costs 0.46 credits per image (≈ $0.0046).

Save up to 16%with the $1,250 top-up pack (+10% bonus) — 8% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Z-Image API on you.bot

Z-Image — a fast, lightweight general-purpose image generator.

Z-Image API pricing & guide (2026)

Z-Image — fast, high-fidelity AI image generation & editing. Through you.bot you call the Z-Image API by Qwen on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Z-Image API costs about $0.005 per image — roughly 8% cheaper than the official Qwen price of $0.005. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Z-Image API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Z-Image API

Fast & lightweight

Quick results for everyday image generation.

Flexible aspect ratios

Common ratios for any layout.

PNG or JPEG

Pick the output format you need.

Where the Z-Image API fits in production

Every image below was generated on you.bot with the Z-Image API itself — no stock photography.

Food and menu imagery

Food and menu imagery

Consistent plating and light across a whole menu.

Portraits for team pages

Portraits for team pages

Consistent headshot style without booking a studio.

Textures and backgrounds

Textures and backgrounds

Tileable grounds and materials for the rest of your design system.

Concept art and moodboards

Concept art and moodboards

Explore a direction in minutes before committing a shoot budget.

Product detail imagery

Product detail imagery

Keep the product, the surface and the lighting under separate control, so one selling point can be reworked without disturbing the rest of the frame.

Data-driven visuals

Data-driven visuals

Dense information comes out as a composition with a hierarchy rather than stacked labels.

How to access and deploy the Z-Image API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Z-Image endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "z-image",
    "input": { "prompt": "..." }
  }'

Z-Image API on you.bot vs going direct

Featureyou.botGoing direct
Price per image$0.005$0.005
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Z-Image API

8% cheaper

Lower rates than going direct to Qwen — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Z-Image API

Z-Image is billed per image at about $0.005 on you.bot — and you only pay for successful generations.

Qwen

Z-Image API code example

POST/api/v1/generate

Z-Image — fast, high-fidelity AI image generation & editing.

Overview

Z-Image runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Key features

  • Flexible aspect ratios: 1:1, 4:3, 3:4, 16:9, 9:16

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `z-image`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
promptstringYesA text description of the image you want to generate · default: Photorealistic 3:4 fashion editorial at blue-hour dawn. A glamorous young woman crosses a rain-soaked city intersection barefoot after an all-night party, wearing a silver sequin dress under an oversized black blazer, both heels hanging loosely from one hand. Wet hair, slightly smeared makeup, natural tired expression, captured mid-step rather than posing. Low 35mm street-level camera, strong asymmetry: she occupies the right third. A plain yellow taxi with NO logos or text sweeps across the left background in soft motion blur. Its wake lifts wet silver confetti into one curved airborne trail behind her, visually tracing her path. Zebra-crossing lines and reflections lead toward her. Cold dawn blue mixes with fading amber streetlights. Smaller condensed white type upper-left: “AFTER HOURS” with generous margin. Small line below: “05:42 AM / STILL GOING”. Raw, tactile, expensive, candid fashion photography; realistic skin, wet asphalt, sequins, motion and reflections.
aspect_ratiostringYesAspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image). (options: 1:1, 4:3, 3:4, 16:9, 9:16) · default: 1:1
nsfw_checkerbooleanNoA configurable parameter. Defaults to true in the Playground. (true/false) · default: true

Query task status

GET/api/v1/task/{taskId}?model=z-image

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "z-image",
    "input": {
        "prompt": "Photorealistic 3:4 fashion editorial at blue-hour dawn. A glamorous young woman crosses a rain-soaked city intersection barefoot after an all-night party, wearing a silver sequin dress under an oversized black blazer, both heels hanging loosely from one hand. Wet hair, slightly smeared makeup, natural tired expression, captured mid-step rather than posing.\n\nLow 35mm street-level camera, strong asymmetry: she occupies the right third. A plain yellow taxi with NO logos or text sweeps across the left background in soft motion blur. Its wake lifts wet silver confetti into one curved airborne trail behind her, visually tracing her path. Zebra-crossing lines and reflections lead toward her.\n\nCold dawn blue mixes with fading amber streetlights. Smaller condensed white type upper-left: “AFTER HOURS” with generous margin. Small line below: “05:42 AM / STILL GOING”.\n\nRaw, tactile, expensive, candid fashion photography; realistic skin, wet asphalt, sequins, motion and reflections.",
        "aspect_ratio": "1:1",
        "nsfw_checker": true
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 0.46
}