edit_image
Edit a source image from a public URL using a text prompt and RunAPI; creates a Qwen Image task and returns task ID, status, and output URLs.
Instructions
Create a Qwen Image task on RunAPI (edit 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>",
"source_image_url": "<source_image_url>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Integer seed for reproducible results. Declared type: integer. | |
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Edit instruction for the source image. Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "1:1", "3:4", "9:16", "4:3", "16:9". | |
| callback_url | No | Webhook URL for asynchronous task updates. Declared type: string. | |
| output_format | No | Output image format. Declared type: string. Known values: "png", "jpeg". | |
| poll_interval_ms | No | ||
| source_image_url | Yes | Public HTTPS source image URL (JPEG, PNG, or WebP; maximum 10 MB). Declared type: string. |