Generate Video
generate_videoSubmit a VIDEO render job — modelId must be a video model (kind=video; e.g. veo-3.1, kling-3.0, ws-pika-2.2). For images use generate_image (NOT this tool — image models like flux-1-schnell/recraft-v3 are not video). Returns { jobId, projectId }. jobId == shotId — poll status via get_job until status='succeeded', then retrieve outputUrl. A text prompt alone is enough for a single clip. When the look matters (a product, a character, a brand), call pick_reference_images first, let the user choose a frame, and pass its URL as reference_image_url. Many models render fixed lengths (see clipLengthsSec in list_models): the request is fitted to a supported length (some round up) and charged for the seconds produced. aspectRatio must be one the model supports (aspectRatios in list_models). For AVATAR / LIP-SYNC models (omnihuman, heygen-photo-avatar, muapi-latentsync): pass the source photo as reference_image_url AND the spoken audio track as audio_url (a public mp3/wav URL) — the avatar's lips track THAT audio instead of provider-generated TTS. For muapi-latentsync, reference_image_url is the source VIDEO url. For performance transfer (fal-live-portrait, fal-wan-animate) pass the driving video as reference_video_url. camelCase spellings (referenceImageUrl, audioUrl, referenceVideoUrl, projectId) are accepted too. Per-model knobs (e.g. HeyGen avatarId/voiceId/engine) ride on providerOptions. Pass project_id from create_project to group all shots from a run into one project. Scope required: generate:video.
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": {
"modelId": "<modelId>",
"prompt": "<prompt>",
"durationSec": "<durationSec>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What the clip should show (at least 3 characters). | |
| modelId | Yes | Video model id from list_models (kind video). Image, voice and music models are refused, as are models marked unavailable. | |
| audioUrl | No | Alias of audio_url, used only when that is not sent. | |
| audio_url | No | Public mp3/wav URL of the speech track for avatar and lip-sync models; the lips follow this audio. Wins over audioUrl. | |
| projectId | No | Alias of project_id, used only when that is not sent. | |
| project_id | No | Add the shot to this project of yours (from create_project). Omit to create a new one-shot project. | |
| shot_index | No | 1-based position of the shot in its project. Omit to place it after the project's existing shots. | |
| aspectRatio | No | Frame shape; must be one of the model's aspectRatios in list_models. Default 16:9. | |
| durationSec | Yes | Requested length in whole seconds (1–60). Fixed-length models are fitted to a supported length, sometimes rounding up (clipLengthsSec in list_models); you pay for seconds produced. | |
| imageModelId | No | Image model for the imagePromptHint frame. Default flux-1-schnell. Used only with imagePromptHint. | |
| authPreference | No | Bill on the user's own provider key (byok) or Varosity credits (platform); if that can't be used, the other is tried. Omit for the default: your key first, else credits (the Providers-page toggle applies in the Varosity app only). | |
| imagePromptHint | No | Prompt for a start frame that is generated first (with imageModelId) and passed to the video model. Charged as a separate image. Ignored when a reference image URL is sent. | |
| providerOptions | No | Extra per-model settings passed to the provider as-is (e.g. HeyGen avatarId, voiceId, engine). See the model's coaching: list_models with modelId. A JSON object written as a string, for example {"seed": 42}. | |
| referenceImageUrl | No | Alias of reference_image_url, used only when that is not sent. | |
| referenceVideoUrl | No | Alias of reference_video_url, used only when that is not sent. | |
| reference_image_url | No | Public URL of the reference/start image (e.g. from pick_reference_images); for muapi-latentsync, the source video. Wins over referenceImageUrl. | |
| reference_video_url | No | Public URL of the driving video for performance-transfer models (fal-live-portrait, fal-wan-animate). Wins over referenceVideoUrl. |