text_to_image
Generate images from text prompts via RunAPI, returning a task ID, status, and output URLs.
Instructions
Create a Wan task on RunAPI (text to image). Returns a task id, status, and output URLs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_to_image"
}
}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 | No | Declared type: string. | |
| bbox_list | No | Declared type: array. | |
| watermark | No | Declared type: boolean. | |
| timeout_ms | No | ||
| aspect_ratio | No | Declared type: string. Known values: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8". | |
| callback_url | No | Declared type: string. | |
| output_count | No | Declared type: integer. | |
| color_palette | No | Declared type: array. | |
| thinking_mode | No | Declared type: boolean. | |
| poll_interval_ms | No | ||
| enable_sequential | No | Declared type: boolean. | |
| output_resolution | No | Declared type: string. Known values: "1k", "2k", "4k". | |
| source_image_urls | No | Declared type: array. | |
| enable_safety_checker | No | Declared type: boolean. |