generate_video_from_image
Turn a still image into a moving video using it as the first frame. Describe the desired content, set duration and resolution, choose a generation tier, and confirm to produce the video clip.
Instructions
图生视频:以图片为首帧生成视频。
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": {
"image": "<image>",
"prompt": "<prompt>"
},
"name": "generate_video_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | 档位:standard(wan2.7-i2v)/max(happyhorse-1.1-i2v),默认 standard。 | standard |
| wait | No | true=等待完成并下载;false=提交后返回 task_id | |
| image | Yes | 首帧图片路径或 URL(本地图片自动上传到临时 OSS)。 | |
| prompt | Yes | 视频内容描述。 | |
| confirm | No | 必须为 true 才会实际调用付费生成接口;false 时只返回预计费用。 | |
| duration | No | 秒数 | |
| resolution | No | 720P/1080P;480P 自动升级为 720P | 720P |