Referencev1 Stable

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
https://zimageturbo.ai
Get an API keyView request logs
01

Quick Start

Three steps from zero to your first image.

1

Create an API key

Open the API Keys page in your dashboard and create a key. Keep it on your server.

Open API Keys
2

Call /api/generate

Send a prompt and an optional aspect ratio. The response already contains the image URL.

3

Check status and logs

Look up any task with /api/status, or browse every request on the logs page.

Open request logs
02

Authentication

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.

HTTP Header
Authorization: Bearer YOUR_API_KEY
POST
https://zimageturbo.ai/api/generate

Generate one image from a text prompt. Credits are deducted when the request is accepted and refunded automatically if generation fails.

This endpoint is synchronous: it waits for the image and returns the URL in data.images, usually within a few seconds. Set your HTTP client timeout to at least 60 seconds. Save the images you want to keep.

Body Parameters

Parameter NameTypeRequiredDescription
promptstringYesText description of the image. English and Chinese both work; keep it under 1,000 characters for best results.
aspect_ratiostringOptionalOutput 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
sizestringOptionalExact 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
seedintegerOptional-1 for a random result, or a fixed integer to reproduce an image. Default: -1

Aspect ratio → output size

1:11024 × 1024
4:31152 × 864
3:4864 × 1152
3:21248 × 832
2:3832 × 1248
4:51024 × 1280
5:41280 × 1024
16:91280 × 720
9:16720 × 1280
curl -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
  }'
Response (JSON)
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "wave4f1c2d9e8b7a4c3d9e0f1a2b3c4d5e6ftask",
    "images": [
      "https://cdn44.gogloai.com/zimage/wave4f1c…task_0.jpeg"
    ]
  }
}
GET
https://zimageturbo.ai/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 NameRequiredDescription
task_idYesThe task_id returned by /api/generate.

Response fields

FieldTypeDescription
task_idstringTask identifier.
statusstringSUCCESS, FAILED or IN_PROGRESS.
imagesstring[]Generated image URLs as an array.
modelstringModel name, always z-image-turbo.
requeststring (JSON)The parameters that were used, as a JSON string, including the final size.
responsestring (JSON)Generated result as a JSON string, kept for backward compatibility. Use images for a ready-to-use array.
consumed_creditsintegerCredits charged for this task. 0 when it failed and was refunded.
error_messagestring | nullReason for failure, otherwise null.
created_atstringCreation time in UTC.
cURL
curl "https://zimageturbo.ai/api/status?task_id=wave4f1c2d9e8b7a4c3d9e0f1a2b3c4d5e6ftask" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response Example
{
  "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

2 credits / image

Failed generations are refunded automatically.

View credit plans

Error Handling

Errors use the same JSON shape: { code, message, data }. Read message for the exact reason.

  • 400Invalid parameters, or not enough credits
  • 401Missing or invalid API key
  • 404task_id not found
  • 500Generation failed; credits refunded
03

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.

© 2026 Z Image Turbo. All rights reserved.