Generate a video with KaiRouter
generate_videoGenerate a video asynchronously by submitting a model ID and text prompt. Returns a queued job ID to poll with check_video_status.
Instructions
Start an async video generation job on KaiRouter (e.g. BytePlus Seedance 2.0 / 2.0 Fast / 2.0 Mini / 1.5 Pro / 1.0 Pro — see list_video_models for the exact ids currently available). Returns immediately with a job id and status 'queued'; it does NOT wait for the video to finish. Call check_video_status with the returned id to poll until status is 'succeeded' (or 'failed'). Deducts real credits from the caller's KaiRouter account balance when the job is accepted.
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": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | KaiRouter model id, e.g. 'dreamina-seedance-2-0-260128'. Call list_video_models to see valid ids. | |
| ratio | No | Aspect ratio, e.g. '16:9', '9:16', '1:1'. Default 16:9. | |
| prompt | Yes | Text prompt describing the video to generate. | |
| duration | No | Output duration in seconds. Default 5. | |
| image_url | No | Reference image URL or data: URI, for image-to-video generation. | |
| video_url | No | Input video URL, for video-to-video generation on models that support it. | |
| resolution | No | Output resolution. Default 720p. | |
| with_audio | No | Generate with audio, on models with audio-based pricing (e.g. Seedance 1.5 Pro). | |
| negative_prompt | No | Things to avoid in the output. | |
| input_duration_secs | No | Duration in seconds of the input video — required for accurate cost estimation on video-to-video. |