Alibaba
Z-Image Turbo
Quickly creates an image from a short prompt.
alibaba/z-image-turbo- Input → Output
- Text/Text → Text, images
- Maximum input
- -
- Provider
- 1
- Tool invocation
- No
Price per million tokens
- Input
- 0 credits
- Text Printing
- 21,696 credits
- Image Output
- 21,696 credits
About 24.3 credits to generate one 1K image (assuming 1,120 image output tokens). Actual output costs depend on the model and generation settings. Input is priced separately.
Provider
Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.
| Provider | Input / 1M | Output / 1M | Cache read | First token | Throughput | Uptime |
|---|---|---|---|---|---|---|
| Alibaba Cloud | 0 credits | 21,696 credits | - | - | - | - |
Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.
Use the API
import base64
from openai import OpenAI
client = OpenAI(
base_url="https://alprouter.com/api/v1",
api_key="alp-your-key",
)
answer = client.chat.completions.create(
model="alibaba/z-image-turbo",
messages=[{"role": "user", "content": "Please draw a paper airplane that flies over the sunset-hued sea."}],
)
# data:image/png;base64,... format. Depending on the model JPEGmay also be returned
url = answer.choices[0].message.images[0]["image_url"]["url"]
kind = url.split(";")[0].split("/")[1]
with open(f"image.{kind}", "wb") as file:
file.write(base64.b64decode(url.split(",", 1)[1]))Details
- Maximum output
- 1.1K tokens
- Tool invocation
- Unsupported
- Supported input
- Text/Text
- Output
- Text, images
- Provider
- Alibaba Cloud
- Supported parameters
- image_config, max_completion_tokens, max_tokens, modalities, stream
Frequently asked questions
What kind of model is Z-Image Turbo?
A model from Alibaba. Quickly creates an image from a short prompt. Model ID on AlpRouter: alibaba/z-image-turbo
How much does Z-Image Turbo cost?
About 24.3 credits to generate one 1K image (assuming 1,120 image output tokens). One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.
What input and output does Z-Image Turbo support?
Send Text/Text to receive Text, images.
Does Z-Image Turbo support tool calling and structured JSON?
Tool calling: Unsupported. Structured output (response_format): Unsupported.
Which providers handle Z-Image Turbo requests?
Alibaba Cloud handles these requests.
How do I call Z-Image Turbo from code?
Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (alibaba/z-image-turbo). There’s an example of how to do this in the “Using the API” section above.
Other models from Alibaba
- Wan 2.7 Image Proalibaba/wan-2.7-image-pro121.5 credits per image
- Wan 2.7 Imagealibaba/wan-2.7-image48.6 credits per image
- Wan 3.0alibaba/wan-3.0162 credits per second
- Wan 3.0 Primealibaba/wan-3.0-prime226.8 credits per second
- Wan 2.7alibaba/wan-2.7162 credits per second
- HappyHorse 1.1alibaba/happyhorse-1.1226.8 credits per second