Generate Media
generate_mediaSubmit image, video, or audio generation requests to receive a job ID for tracking. The server routes to available backends, returning immediately while the job runs.
Instructions
Start a generation and return a job handle.
Returns immediately. The job is not finished when this returns; poll get_job with the returned job_id until state is one of succeeded, failed, cancelled or rejected.
Set backend only to pin a specific provider. Leaving it unset lets the server route, which is normally what you want.
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": {
"modality": "<modality>",
"prompt": "<prompt>"
},
"name": "generate_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| backend | No | ||
| modality | Yes | ||
| duration_s | No | ||
| require_tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||