Model Details
# Z-Image Turbo [text-to-image]
Z-Image Turbo is a high-speed text-to-image generation model designed specifically for workflows where throughput, cost-efficiency, and speed are paramount. Built on a lean 6B-parameter architecture, it significantly reduces generation time by compressing the inference pipeline to a maximum of 8 steps, contrasting sharply with standard diffusion models that often require 20-50 steps.
### Key Capabilities
* **Speed-Optimized Inference:** The model allows users to configure inference steps between 1 and 8. Use lower steps for instant thumbnails and rapid iteration, or the full 8 steps for higher-quality final assets. * **High Resolution & Flexibility:** despite its speed, the model supports resolutions up to 4 megapixels. Users can select from various aspect ratios via the UI, including square, portrait, and landscape formats (e.g., `landscape_16_9`, `portrait_4_3`). * **Batch Generation:** To facilitate rapid variation testing, the model supports generating up to 4 images in a single API call. * **Prompt Enhancement:** The model features an optional "Prompt Expansion" setting. When enabled, it automatically enriches brief prompts with descriptive details to produce more robust and visually interesting results without requiring complex prompt engineering.
### Best Use Cases
This model is ideal for high-volume applications such as rapid prototyping, storyboard creation, and content variation testing. While it trades some of the extreme photorealism found in larger, slower models for raw speed, it maintains excellent prompt adherence and is perfect for production environments requiring thousands of assets.
To run via ModelRunner javascript client, use the following code:
```javascript import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe('tongyi-mai/z-image/turbo', { input: { "prompt": "A futuristic city skyline at sunset, cyberpunk style, neon lights", "image_size": "landscape_16_9", "num_images": 1, "num_inference_steps": 8, "enable_prompt_expansion": true, "output_format": "jpeg", "enable_safety_checker": true } }); ```
