Image Generation
Z.ai Image
Zhipu Z.ai image generation — lightweight and fast, bilingual prompts, low latency and low cost
POST
Z.ai Image
Lightweight and fast image generation from Zhipu Z.ai, with strong support for both Chinese and English prompts. Low latency, low price — suited for high-frequency scenarios like batch sketches, operations creatives, and quick previews.
Per-image pricing. Pure text-to-image (no reference images), fixed at 1 image per call.
After submission, poll status with
Pricing
| Model | Price (per image) |
|---|---|
z-image-turbo | $0.010625 |
Examples
GET /v1/tasks/{task_id}. See Task System for details.
Available Models
| Model ID | Description |
|---|---|
z-image-turbo | Lightweight and fast, bilingual, 1K/2K, pure text-to-image (no reference images) |
Common Parameters
Choose one from the Available Models list
Operation type.
z-image-turbo only supports generate (text-to-image)Image description. Strong support for both Chinese and English. Max 800 characters
Number of images. This model is fixed at 1 image per call;
n > 1 is not supportedRandom seed.
-1 for random; a fixed value reproduces similar resultsAspect ratio. Options:
1:1— Square4:3/3:4— Standard landscape / portrait16:9/9:16— Widescreen landscape / portrait3:2/2:3— Camera ratio landscape / portrait
Output resolution. Options:
1K / 2KWebhook callback URL, invoked when the task reaches a terminal state. See Callback Mechanism
Events to receive callbacks for. Defaults to terminal events only. See Callback Mechanism
Model-Specific Parameters
Smart prompt rewrite. When enabled, AI auto-optimizes the prompt for better results, but adds extra cost
Notes
- Single image per call —
nis fixed at 1; submit multiple tasks for multiple images - Prompt limit 800 characters — trim long prompts yourself
- Enabling
prompt_extendincreases cost — AI rewrite consumes extra inference cost; enable selectively for batch scenarios - Pure text-to-image — does not accept
image_urlsreference images; use other models for image-to-image
Resource Limits
| Item | Limit |
|---|---|
| Images per call | Fixed at 1 |
| Prompt length | ≤ 800 characters |
| Output resolution | 1K / 2K |
| Output file | JPG, URL valid for 24 hours |
Related Docs
- Task System — Task state machine / polling cadence / async push
- Request & Response — Common error codes / Headers / rate limits
- Authentication — API Key application and usage
Z.ai Image