下载视频内容
异步生成视频:创建任务、轮询状态,完成后下载内容。
先调用「创建视频」,用返回的 ID 替换 video_123;下载前须轮询至 completed。
/model/v1/videos/{video_id}/content● 支持请求参数
video_idstring必填path: Id of the video job whose output you want, the `id` returned by createVideo. The job must be completed; before that the call answers 400.
variantany可选◐ 部分支持query: Spritesheet is not available in this release (400).
video、thumbnail 生效;spritesheet 返回 400。
indexinteger可选◐ 部分支持query: Output index; this release produces index 0. variant takes precedence.
视频仅支持 index=0;大于 0 或负数返回 400。variant=thumbnail 时 index 接受但当前不生效。
返回
200
按输出秒数计费;每秒价格见 GET /model/v1/models 的 pricing.video_second(USD/秒)。
鉴权、限流、参数校验等平台错误按 problem+json 返回;OCR 的错误也为 problem+json,其它模型调用的错误按该端点所属格式(OpenAI 或 Anthropic)返回,参见 错误码
响应
HTTP 200
Video or thumbnail bytes
video/mp4
| 名称 | 类型 | 说明 |
|---|---|---|
| $ | string (binary) |
image/jpeg
| 名称 | 类型 | 说明 |
|---|---|---|
| $ | string (binary) |
先创建视频,保存返回的 id;再读取视频轮询 status,queued / in_progress 时继续等待,failed 时停止并查看 error;只有 completed 后才下载视频内容。