logo

获取视频生成状态

获取用户生成的视频状态和下载链接
POST
https://api.openapi.cn/v1/video/status

认证参数

Authorization
string
header
必填
使用以下格式进行身份验证:Bearer <YOUR API KEY>

请求体

application/json
requestId
string
必填
由提交接口返回的请求ID

响应体

status
string
操作的状态。可能的值为'Succeed'和'InProgress'
position
integer
结果集中的位置
reason
string
操作的原因
results
object
结果详情

请求示例
curl -X POST "https://api.example.com/video/status" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "requestId": "vid-req-123456789"
  }'
响应示例
{
  "status": "Succeed",
  "position": 1,
  "reason": "Video generation completed successfully",
  "results": {
    "videoUrl": "https://example.com/videos/generated/123456789.mp4",
    "expiresAt": "2023-06-01T12:00:00Z"
  }
}