Z Image Turbo API
Generate images with Z-Image Turbo from your own app. Send one POST request with a prompt and get the image URL back in the same response. Every call is logged in your dashboard.
- Image URL returned in the same response
- 2 credits per image
- Up to 1536 × 1536 px
Quick Start
Three steps from zero to your first image.
Create an API key
Open the API Keys page in your dashboard and create a key. Keep it on your server.
Open API KeysCall /api/generate
Send a prompt and an optional aspect ratio. The response already contains the image URL.
Check status and logs
Look up any task with /api/status, or browse every request on the logs page.
Open request logsAuthentication
Every request must include your API key in the Authorization header as a Bearer token.
Note: Please keep your API Key secure and do not expose it in client-side code.
Authorization: Bearer YOUR_API_KEY/api/generateGenerate one image from a text prompt. Credits are deducted when the request is accepted and refunded automatically if generation fails.
Body Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text description of the image. English and Chinese both work; keep it under 1,000 characters for best results. |
aspect_ratio | string | Optional | Output shape as width:height. Presets: 1:1, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 16:9, 9:16; other ratios such as 21:9 are sized automatically. Unrecognized values fall back to 1:1. Ignored when size is set. Default: 1:1 |
size | string | Optional | Exact output size as width*height or widthxheight, for example 1280*720. Each side is kept between 256 and 1536; sizes outside that range are scaled to fit with the same ratio. Unreadable values fall back to the default. Default: 1024*1024 |
seed | integer | Optional | -1 for a random result, or a fixed integer to reproduce an image. Default: -1 |
Aspect ratio → output size
1:11024 × 10244:31152 × 8643:4864 × 11523:21248 × 8322:3832 × 12484:51024 × 12805:41280 × 102416:91280 × 7209:16720 × 1280curl -X POST https://zimageturbo.ai/api/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A neon-lit ramen shop on a rainy Tokyo street at night, cinematic, 35mm photo",
"aspect_ratio": "16:9",
"seed": -1
}'{
"code": 200,
"message": "success",
"data": {
"task_id": "wave4f1c2d9e8b7a4c3d9e0f1a2b3c4d5e6ftask",
"images": [
"https://cdn44.gogloai.com/zimage/wave4f1c…task_0.jpeg"
]
}
}/api/status?task_id=…Look up a task by its task_id, for example to re-read the image URL later or to check why a request failed.
Query Parameters
| Parameter Name | Required | Description |
|---|---|---|
task_id | Yes | The task_id returned by /api/generate. |
Response fields
| Field | Type | Description |
|---|---|---|
task_id | string | Task identifier. |
status | string | SUCCESS, FAILED or IN_PROGRESS. |
images | string[] | Generated image URLs as an array. |
model | string | Model name, always z-image-turbo. |
request | string (JSON) | The parameters that were used, as a JSON string, including the final size. |
response | string (JSON) | Generated result as a JSON string, kept for backward compatibility. Use images for a ready-to-use array. |
consumed_credits | integer | Credits charged for this task. 0 when it failed and was refunded. |
error_message | string | null | Reason for failure, otherwise null. |
created_at | string | Creation time in UTC. |
curl "https://zimageturbo.ai/api/status?task_id=wave4f1c2d9e8b7a4c3d9e0f1a2b3c4d5e6ftask" \
-H "Authorization: Bearer YOUR_API_KEY"{
"code": 200,
"message": "success",
"data": {
"task_id": "wave4f1c2d9e8b7a4c3d9e0f1a2b3c4d5e6ftask",
"status": "SUCCESS",
"model": "z-image-turbo",
"images": [
"https://cdn44.gogloai.com/zimage/wave4f1c…task_0.jpeg"
],
"request": "{\"prompt\":\"A neon-lit ramen shop on a rainy Tokyo street at night, cinematic, 35mm photo\",\"aspect_ratio\":\"16:9\",\"size\":\"1280*720\",\"seed\":-1}",
"response": "[\"https://cdn44.gogloai.com/zimage/wave4f1c…task_0.jpeg\"]",
"consumed_credits": 2,
"error_message": null,
"created_at": "2026-11-21 08:15:42"
}
}Billing
Cost per image
Failed generations are refunded automatically.
View credit plansError Handling
Errors use the same JSON shape: { code, message, data }. Read message for the exact reason.
400Invalid parameters, or not enough credits401Missing or invalid API key404task_id not found500Generation failed; credits refunded
About Z Image Turbo
Z Image Turbo is a generation engine optimized based on the latest diffusion models. It focuses on increasing inference speed to 300% of traditional models while maintaining extremely high fidelity. Suitable for real-time interaction, game asset generation, and e-commerce design scenarios.
Z-Image-Turbo — 6B-parameter, ultra-fast text-to-image
Z-Image-Turbo is a 6B-parameter text-to-image model from Tongyi-MAI, engineered for production workloads where latency and throughput really matter. It uses only 8 sampling steps to render a full image, achieving sub-second latency on data-center GPUs and running comfortably on many 16 GB VRAM consumer cards.
Ultra-fast generation with production-ready quality
Where many diffusion models need dozens of steps, Z-Image-Turbo is aggressively optimised around an 8-step sampler. That keeps inference extremely fast while still delivering photorealistic images and reliable on-image text, making it a strong fit for interactive products, dashboards, and large-scale backends—not just offline batch jobs.
Why it looks so good?
- Photorealistic output at speed — Generates high-fidelity, realistic images that work for product photos, hero banners, and UI visuals without multi-second waits.
- Bilingual prompts and text — Understands prompts in English and Chinese, and can render multilingual text directly in the image—helpful for cross-market campaigns, posters, and screenshots.
- Low-latency, low-step design — Only 8 function evaluations per image deliver extremely low latency, ideal for chatbots, configuration tools, design assistants, and any “click → image” experience.
- Friendly VRAM footprint — Runs well in 16 GB VRAM environments, reducing hardware costs and making local or edge deployments more realistic.
- Scales for bulk generation — Its efficiency makes large jobs—catalogues, continuous feed images, or auto-generated thumbnails—practical without blowing up compute budgets.
- Reproducible generations — A controllable seed parameter lets you recreate a previous image or generate small, controlled variations for brand safety and experimentation.
How to use
promptDescribe the scene, style and any on-image text (English or Chinese).aspect_ratioPick a preset shape such as 16:9 for banners or 9:16 for stories.sizeSet an exact width*height between 256 and 1536 px; overrides aspect_ratio.seedUse -1 for random results, or a fixed integer to reproduce an image.