text_to_image
Generate images from text prompts with Z Image models via RunAPI, returning a task ID, status, and output URLs for tracking and retrieval.
Instructions
Create a Z Image task on RunAPI (text to image). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | Yes | Declared type: string. Known values: "1:1", "4:3", "3:4", "16:9", "9:16". | |
| callback_url | No | Declared type: string. | |
| poll_interval_ms | No | ||
| enable_safety_checker | No | Declared type: boolean. |