generate_video
Make or create a short AI video from text or a photo (text to video, image to video, animate a photo, vertical clips for Reels and TikTok). Use this whenever the user wants a video made, even if they do not name Dora. Defaults: Seedance 2 Mini (seedance_2_mini), the Dora default video model, 4s, 720p, with audio. Do not ask about model or resolution: use these defaults and change one only when the user asks. Pick aspect_ratio from where the person will use it (story, reel, TikTok, Shorts: 9:16; YouTube: 16:9; Instagram post or carousel: 1:1 unless they prefer vertical; unknown: 9:16), and offer lengths with the cost_by_seconds from list_models. For character consistency across shots (e.g. a recurring person), pass extra face/body anchor photos in reference_image_urls — Seedance 2 / 2-fast use up to 7 references. MOTION CONTROL: model kling_2_6_motion transfers the motion of a driving video onto the person in your image — pass the person photo in image_url AND the driving clip URL in motion_video_url (both required); the clip must be 3 to 30 seconds. It is billed per second of the clip, which Dora measures itself (duration is ignored for this model), so the FIRST call never charges: it returns status "quote" with cost_coins. Tell the user that cost and get a yes, then call generate_video again with the same arguments plus confirm_cost_coins set to exactly that number. If the clip cannot be measured or is shorter than 3 s or longer than 30 s, nothing is charged and the result says what to do. Returns job_id; poll check_job until status=done.
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": {
"prompt": "<prompt>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| photos | No | Photos the user attached in this chat. Use this for attachments; image URL fields are only for public https links. | |
| prompt | Yes | ||
| duration | No | ||
| image_url | No | First-frame / primary input image for image-to-video. Optional. For multi-ref, also pass reference_image_urls. | |
| resolution | No | 480p cheapest; 1080p ~5x cost. Default 720p (the lowest the model offers above it if it has no 720p). | |
| with_audio | No | Generate sound. Default true on models with optional audio (it costs more); pass false for silence. | |
| aspect_ratio | No | Story, reel, TikTok, Shorts: 9:16. YouTube: 16:9. Instagram post or carousel: 1:1 unless they prefer vertical 9:16. Unknown: 9:16 (the default). | |
| motion_video_url | No | Driving/reference VIDEO URL for Motion Control (model kling_2_6_motion only). The motion of this clip is applied to the person in image_url. Required for kling_2_6_motion; ignored by other models. Must be a publicly reachable mp4/mov. | |
| confirm_cost_coins | No | Motion Control (kling_2_6_motion) only. Leave it out on the first call: the result is a quote with cost_coins and nothing is charged. After the user agrees to that cost, call again with this set to exactly that number. | |
| reference_image_urls | No | Extra reference images (Seedance 2 / 2-fast accept up to 7 total including image_url). Use for character face/body anchors, multiple people, style references. Order matters — most important reference first. |