GET /videos/generations/:id

Live
读取视频任务当前状态。
在 ChatGPT 中打开
(opens in new tab)
最后核对: 2026-08-11

接口

GET /videos/generations/:id
读取视频任务当前状态。 Base URL 为 https://api.modelrush.ai/v1。

请求

字段:路径中的生成任务 ID,以及提交时使用的同一 Bearer 密钥。已认证路由发送 Authorization: Bearer $MODELRUSH_API_KEY;JSON Body 发送 Content-Type: application/json。

响应

字段:id、status(queued、in_progress、completed 或 failed)、model、modelrush_region;成功时返回 video_url,失败时返回 error,可用时提供 provider_status。这与使用 succeeded 和 outputs 的 GET /predictions/:id 不同。保存返回的 request 或 generation 标识。生成输出及其 Provider 文件引用会在请求完成 24 小时后从 ModelRush 数据库清除;需要长期使用的结果请及时下载。

错误

无效输入返回带结构化错误的 4xx。403 的 adult_attestation_required、portrait_rights_attestation_required 或 person_rights_confirmation_required 必须由账户用户处理,绝不能自动重试。429 按 Retry-After 重试;5xx 只能用有限次数退避重试。