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.
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 | |||