z-image-turbo API
Generate images from Chinese or English prompts with Alibaba’s lightweight z-image-turbo on APISea.
z-image-turboBảng giá API z-image-turbo
Tất cả giá đều tính bằng USD. So sánh mức giá của APISea với giá niêm yết chính thức cho cùng đơn vị.
| Tùy chọn | APISea | Chính thức | Tiết kiệm |
|---|---|---|---|
| Mặc địnhMặc định | $0.011 | $0.0139 | −21% |
| prompt extend | $0.022 | $0.0278 | −21% |
Giá tính theo mỗi hình ảnh.
z-image-turbo là gì?
Alibaba’s Z-Image family model, z-image-turbo, provides lightweight, fast text-to-image generation on APISea. It supports Chinese and English prompts, making it suited to image-generation tools that serve either language. Each request accepts a text description of up to 800 characters and generates exactly one image. Developers can choose from seven aspect ratios and two resolution tiers, 1K and 2K, or keep the default square, 1K output. Optional smart prompt rewriting can optimize the supplied description before generation.
Generation runs asynchronously: submit a request, receive a task ID, and poll for the result. APISea charges $0.011 per image with the default configuration, about 21% below the provider list price of $0.0139 per image. With prompt extend enabled, pricing is $0.022 per image, compared with the provider list price of $0.0278 per image. Billing applies only to successfully generated images; failed generations are not charged.
Điểm nổi bật của z-image-turbo
Chinese and English Prompts
Generate images from text descriptions in Chinese or English. Prompts can contain up to 800 characters.
Seven Aspect Ratios
Choose square, landscape, or portrait output using seven supported ratios, including 1:1, 16:9, and 9:16.
Two Resolution Tiers
Select 1K or 2K output with the resolution parameter. Exact dimensions depend on the selected aspect ratio.
Smart Prompt Rewriting
Enable prompt_extend to automatically optimize the prompt before generation. This option increases the price to $0.022 per image.
Cách gọi API z-image-turbo trong 4 bước
- 01
Tạo API key
Đăng nhập APISea, nạp tối thiểu $50 rồi tạo key sk-sea trong bảng điều khiển.
- 02
Đặt base URL
Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.
- 03
Gửi request
Gọi POST /v1/images/generations với "model": "z-image-turbo" và các tham số bên dưới.
- 04
Xử lý phản hồi
Phản hồi có chứa task_id. Gửi GET /v1/tasks/{task_id} định kỳ cho đến khi trạng thái là completed, sau đó tải xuống từ các URL kết quả.
Ví dụ request
Tài liệu: Z-Image-Turbo Image Generationcurl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "z-image-turbo",
"prompt": "Ink painting style landscape scenery"
}'Tham số
| Tham số | Loại | Bắt buộc | Mặc định | Mô tả |
|---|---|---|---|---|
model | string | Bắt buộc | — | Model name |
nsfw_check | boolean | Tùy chọn | false | Whether to run content moderation before submitting the image task. |
prompt | string | Bắt buộc | — | Text description for image generation, up to 800 characters |
size | string | Tùy chọn | 1:1 | Image aspect ratio |
resolution | string | Tùy chọn | 1K | Resolution tier |
prompt_extend | boolean | Tùy chọn | false | Smart prompt rewriting |
Bạn có thể xây dựng gì với z-image-turbo
Bilingual Image Tools
Build a text-to-image interface that accepts Chinese or English descriptions and returns one generated image per submission.
Campaign Visual Drafts
Create image drafts for campaign concepts, selecting landscape or portrait ratios to match the intended layout.
Content Creation Workflows
Add image generation to publishing tools with square, widescreen, and vertical output options.
Queued Image Generation
Build a background generation workflow that tracks task IDs and polls for completed images instead of waiting for an immediate result.
Mẹo để có kết quả tốt hơn
- 01
Keep Prompts Within Limits
Keep each description within 800 characters. Include the subject, setting, and visual direction in the available space.
- 02
Set Ratio and Resolution
Choose size and resolution together to control output dimensions. For example, 16:9 at 1K produces 1280×720, while 2K produces 2048×1152.
- 03
Budget for Prompt Extend
Leave prompt_extend false for the default $0.011 per image price. Enable it when you want smart prompt rewriting at $0.022 per image.
- 04
Poll the Returned Task
Read task_id from the submission response, then poll /v1/tasks/{task_id} for results. Do not expect the generation request to return a finished image immediately.
Giới hạn và những điều cần biết
Generation is asynchronous and requires polling with the returned task ID.
Each request generates exactly one image; the n parameter is not supported.
Text prompts are limited to 800 characters.
Câu hỏi thường gặp về API z-image-turbo
How much does z-image-turbo cost on APISea?
The default configuration costs $0.011 per image, about 21% below the provider list price of $0.0139 per image. Prompt extend costs $0.022 per image, compared with the provider list price of $0.0278 per image. Only successfully generated images are billed.
How do I call z-image-turbo through the API?
Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to z-image-turbo and a required prompt. The response returns a task_id; poll /v1/tasks/{task_id} to retrieve results.
What image sizes does z-image-turbo support?
It supports 1K and 2K resolution tiers and the aspect ratios 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, and 2:3. Defaults are 1:1 and 1K, producing 1024×1024 output.
What does prompt_extend do?
Setting prompt_extend to true enables AI-based smart prompt rewriting to optimize the description before generation. It is disabled by default and increases pricing to $0.022 per image.
Can I generate multiple images in one request?
No. z-image-turbo generates exactly one image per request and does not support the n parameter. Submit separate requests for additional images.
Can I use z-image-turbo images commercially?
Commercial use is subject to the provider’s terms. Review Alibaba’s applicable terms and any usage restrictions before using generated images in commercial products or campaigns.
Model liên quan
qwen-image-2.0
qwen-image-2.0-pro
qwen-image-3.0
qwen-image-3.0-pro
wan2.7-image
wan2.7-image-pro
flux-2-flex
flux-2-max
Bắt đầu xây dựng với z-image-turbo
Chỉ cần một key, thanh toán theo mức sử dụng từ $50; chỉ tính phí cho các request thành công.