API 目录

查询任务

GET
/vidu-native/video/generations/{task_id}

查询视频生成任务

查询指定视频生成任务的当前状态与结果信息。

GET https://www.vortapapi.com/v1/vidu-native/video/generations/{task_id}

路径参数

参数类型必填说明
task_idstring要查询的视频生成任务 ID。

请求头

名称必填说明
Content-Type请求内容类型,通常为 application/json
Accept期望返回的数据格式,通常为 application/json
AuthorizationVortap API 密钥,例如:Bearer sk-***
X-Forwarded-Host可选的转发主机信息。

请求示例

curl -X GET "https://www.vortapapi.com/v1/vidu-native/video/generations/033fa60e-f37c-4ff6-a44d-5585ffea938d" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***"

响应示例

{
  "id": "033fa60e-f37c-4ff6-a44d-5585ffea938d",
  "status": "pending",
  "video_url": null,
  "enhanced_prompt": "```\nA surreal and whimsical digital painting of a majestic brown cow with large, feathered wings soaring gracefully through a vibrant blue sky. The cow has a joyful expression, its tail streaming behind it as it flies among fluffy white clouds. Below, a patchwork of green farmland stretches into the distance, with tiny farm buildings and a group of astonished farmers looking up in amazement. The scene is bathed in warm golden sunlight, creating a dreamlike and magical atmosphere. Art style inspired by fantasy illustrations with soft brushstrokes and rich, saturated colors.\n```",
  "status_update_time": 1750323167003
}

响应字段

字段类型说明
idstring视频生成任务 ID。
statusstring任务状态,例如 pending
video_urlstring | null生成完成后的视频地址;任务尚未完成时可能为 null
enhanced_promptstring系统增强后的提示词内容。
status_update_timeinteger状态更新时间,Unix 毫秒时间戳。