text_to_image
Generate images from text prompts using Qwen 2 models via RunAPI. Submit a prompt and receive a task ID, status, and output URLs, with optional polling until completion.
Instructions
Create a Qwen 2 task on RunAPI (text to image). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Declared type: integer. | |
| 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 | No | Declared type: string. Known values: "1:1", "3:4", "4:3", "9:16", "16:9". | |
| callback_url | No | Declared type: string. | |
| output_format | No | Declared type: string. Known values: "png", "jpeg". | |
| poll_interval_ms | No | ||
| enable_safety_checker | No | Declared type: boolean. |