OpenAI 格式

Veo 任务查询

使用 `GET /v1/videos/{task_id}` 查询 Veo 视频任务状态与结果。

GEThttps://duoyuanx.com/v1/videos/{task_id}
请求示例
curl https://duoyuanx.com/v1/videos/video_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例
{
  "id": "video_abc123",
  "object": "video",
  "model": "veo_3_1-fast",
  "status": "processing",
  "progress": 50,
  "created_at": 1735689600,
  "completed_at": 0,
  "expires_at": 1735776000,
  "seconds": "8",
  "size": "720x1280",
  "remixed_from_video_id": "",
  "error": {
    "message": "",
    "code": ""
  },
  "video_url": ""
}

OpenAI 格式查询入口,对外返回 OpenAI 风格 video 对象。若任务由 POST /v1/video/create 提交,请使用 查询任务。

  • 任务完成后通常可从 video_url 或代理内容地址读取结果。
  • 路由层仍由 controller.RelayTaskFetch 统一处理。

请求头

Authorizationstring必填

请求身份认证。使用 Bearer Token,示例值:Bearer YOUR_API_KEY。

请求参数

task_idstring必填

视频任务 ID。

请求示例

响应示例

响应字段

idstring

任务 ID。

objectstring

固定为 video。

statusstring

任务状态,常见值包括 queued、processing、completed、failed、cancelled。

progressinteger

进度百分比。

secondsstring

输出时长。

sizestring

输出尺寸。

video_urlstring

视频结果地址。

相关接口