text_to_image
Create a GPT Image task on RunAPI from a text prompt to generate images, returning a task ID, status, and output URLs.
Instructions
Create a GPT Image task on RunAPI (text to image). Returns a task id, status, and output URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"aspect_ratio": "<aspect_ratio>",
"quality": "<quality>"
},
"name": "text_to_image"
}
}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. | |
| quality | Yes | Declared type: string. Known values: "medium", "high". | |
| timeout_ms | No | ||
| aspect_ratio | Yes | Declared type: string. Known values: "1:1", "2:3", "3:2". | |
| callback_url | No | Declared type: string. | |
| poll_interval_ms | No |