Z-Image Turbo API
imageImage generation by alibaba
Fast generation, photorealistic portraits, efficient.
Call Z-Image Turbo from Node.js, Python, or any HTTP client. No GPU provisioning, no cold starts, no Docker images — just an API key and a prompt.
Free credits included. Powering 1M+ generations daily.

Start in 60 seconds
Install the official SDK for Node.js or Python, drop in your API key, and generate your first image.
npm install getimg-ai
import GetimgAI from "getimg-ai";
const client = new GetimgAI();
const result = await client.images.generate({
model: "z-image-turbo",
prompt: "3D race car figure made out of tiny dust-like voxels, looking to the left, smoothly desintegrating into background, medium portrait shot, purple monochrome",
aspect_ratio: "1:1",
resolution: "1K",
output_format: "jpeg"
});
console.log(result.data[0].url);How Z-Image Turbo API works
Send a prompt, get an image URL back — one synchronous call.
Send a request
POST to /v2/images/generations with your prompt and output format.
Get your image
The response includes the image URL plus a usage object with the exact cost.
What you can build with Z-Image Turbo
Every example uses the same authentication and works with the official getimg-ai and getimg SDKs, or plain HTTP.
Text to image
Generate an image using just a text prompt.
import GetimgAI from "getimg-ai";
const client = new GetimgAI();
const result = await client.images.generate({
model: "z-image-turbo",
prompt: "3D race car figure made out of tiny dust-like voxels, looking to the left, smoothly desintegrating into background, medium portrait shot, purple monochrome",
aspect_ratio: "1:1",
resolution: "1K",
output_format: "jpeg"
});
console.log(result.data[0].url);Z-Image Turbo pricing
Pay per image. No subscriptions, no minimums, no idle GPU costs.
Z-Image Turbo
$0.015 /image
/v2/images/generationsFast generation, photorealistic portraits, efficient.
| Resolution | Price | Images for $10 |
|---|---|---|
| 1K | $0.015 /image | 666 |
More from alibaba
Other alibaba models available through the same API.
HappyHorse 1
Physically realistic, motion-smooth video generation with text, first-frame, and reference-image guidance.

Qwen Image 2.0
Accelerated Qwen 2 image generation and editing with balanced quality and speed.

Qwen Image 2.0 Pro
Professional Qwen 2 image generation and editing with stronger text rendering and semantic adherence.

Wan 2.7 Image Pro
Wan 2.7 image pro model with higher-fidelity generation and extended resolution support.

Wan 2.7 Image
Fast Wan 2.7 image model supporting text-to-image and reference-based editing.
Wan 2.7
Multimodal Wan 2.7 video generation with text, frame control, and reference-image guidance.
Z-Image Turbo API — frequently asked questions
How do I use the Z-Image Turbo API?
Install the official Node.js (npm install getimg-ai) or Python (pip install getimg) SDK, or call the endpoint directly over HTTP from any client.
Make a POST request to /v2/images/generations with your API key and a JSON body containing the model ID (z-image-turbo) and a prompt. The response includes the generated image URL.
See the API documentation for the full parameter reference.
Which SDK should I use?
Use getimg-ai for Node.js and TypeScript projects, and getimg for Python. Both wrap the same REST API with typed inputs, retries, and built-in polling for video generations.
For other languages — Go, Rust, Java, Ruby, PHP — call the HTTP endpoints directly. Every example on this page includes a cURL snippet you can port to any HTTP client.
What resolutions does Z-Image Turbo support?
Z-Image Turbo supports the following resolutions: 1K across 8 aspect ratios (1:1, 2:3, 3:2, 4:3, 3:4, 16:9, 9:16, 21:9).
How much does Z-Image Turbo cost?
Z-Image Turbo uses pay-per-image pricing with no subscriptions or minimum commitments. Rates vary by resolution. See the pricing table above for exact rates per image.
Start building with Z-Image Turbo
Grab an API key, install the SDK, ship image generation today.
Looking for other models? View all available models