Back to models
Z-Image-Turbo
Alibaba Tongyi-MAI's step-distilled 6B S3-DiT text-to-image model under Apache 2.0, generating high-fidelity visuals in roughly 8 steps while fitting comfortably within 16GB consumer GPUs.
What you can do
- Fast consumer-GPU text-to-image generation
- High-throughput batch creative production
- Interactive prompt iteration and previews
Input & output
- Input
- Descriptive Chinese or English text prompts
- Output
- High-fidelity images synthesized in ~8 inference steps
Try a prompt like this
Close-up commercial product photo of a frosted emerald glass perfume bottle resting on wet black basalt rocks surrounded by moss and morning mist.
Things to know
Apache 2.0 licensed and fits under 16GB VRAM; step distillation (~8 steps) disables standard negative-prompt CFG behavior and is less suited than base `Z-Image` for heavy fine-tuning.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/images/generations- Model repo ID
Tongyi-MAI/Z-Image-Turbo
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
result = client.images.generate(
model="Tongyi-MAI/Z-Image-Turbo",
prompt="Close-up commercial product photo of a frosted emerald glass perfume bottle resting on wet black basalt rocks surrounded by moss and morning mist.",
size="1024x1024",
)
print(result.data[0].url)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide