API 参考文档/视频
生成视频
video.any.generate按提示词与模型支持的时长生成视频。
单价$0.715 / 1 次请求
在控制台试用请求参数
| 参数 | 类型 | 说明 |
|---|---|---|
model必填 | string | kling-v4-flash kling-v4-flash默认: "kling-v4-flash" |
prompt必填 | string | Generation prompt 最小长度: 1最多 3000 个字符 |
aspect_ratio | string | 16:9 16:9默认: "16:9" |
duration_seconds | integer | Fixed output specification 范围 5–5默认: 5 |
image_url | string | Reference image HTTPS URL 最小长度: 1最多 4096 个字符 |
resolution | string | 720p 720p默认: "720p" |
返回内容
业务数据位于execution.result.data。执行记录同时返回状态、实际费用和 Anyuse 请求 ID。
| 参数 | 类型 | 说明 |
|---|---|---|
files | array | 输出文件。每项包含 url 和 kind;下载 url 时使用相同 Bearer 凭证。链接可能过期。 |
files[].kind必填 | string | files[].kind |
files[].url必填 | string | files[].url |
files[].content_type | string | files[].content_type |
files[].duration | number | string | files[].duration |
files[].duration_seconds | number | string | files[].duration_seconds |
files[].file_size | number | string | files[].file_size |
files[].filename | string | files[].filename |
files[].height | number | string | files[].height |
files[].size | number | string | files[].size |
files[].width | number | string | files[].width |
执行状态与恢复
提交后返回任务 ID。通过执行查询接口读取最终结果;服务重启后会继续查询已提交的上游任务。