GET
/
video
/
{task_id}
/
result
curl --request GET \
  --url https://geekai.co/api/v1/video/{task_id}/result \
  --header 'Authorization: Bearer <token>'
{
  "model": "cogvideox-flash",
  "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "task_status": "succeed",
  "progress": 85,
  "video_result": {
    "url": "<string>",
    "cover_image_url": "<string>",
    "duration": 123,
    "size": 123,
    "format": "mp4",
    "resolution": "1920x1080",
    "fps": 30,
    "created_at": "2023-11-07T05:31:56Z"
  },
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": {}
  }
}

异步创建的视频任务(async参数为true)需要通过视频结果获取接口查询视频生成状态,该接口响应数据格式和创建视频接口完全一致,只需要关注 task_statusvideo_result 字段值即可。

请求/响应参数明细

Authorizations

Authorization
string
header
required

JWT认证token

Path Parameters

task_id
string
required

视频生成任务ID

Response

200
application/json

成功响应

The response is of type object.