Generate
generateCreate an image or video from a text prompt. For video, receive a job_id, then call again with it to poll status.
Instructions
Generate an image or video from a text prompt. Video is async: first call returns job_id; call again with job_id to poll.
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>",
"prompt": "<prompt>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | poor | |
| model | No | ||
| job_id | No | ||
| prompt | Yes | ||
| provider | No | ||
| media_type | Yes | ||
| output_mode | No | both | |
| aspect_ratio | No | 16:9 | |
| duration_seconds | No | ||
| reference_image_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||