uniroute_create_media_task
Submit asynchronous image, video, or music generation tasks with a fixed USD cost ceiling and idempotency key to control spending and safely replay requests.
Instructions
Submit an asynchronous image, video, or music generation task on UniRoute with an explicit max_cost_usd ceiling and idempotency key.
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": {
"media_type": "<media_type>",
"model": "<model>",
"option": "<option>",
"prompt": "<prompt>",
"max_cost_usd": "<max_cost_usd>"
},
"name": "uniroute_create_media_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| option | Yes | ||
| prompt | Yes | ||
| image_url | No | Optional input image URL for image-to-image or image-to-video models. | |
| media_type | Yes | ||
| max_cost_usd | Yes | Exact decimal USD string returned by uniroute_quote_media. | |
| idempotency_key | No | Optional UUID for safe replay. |