跳转到主要内容
查询视频生成任务
curl --request GET \
  --url https://xxx.wengaocloud.com/v1/videos/generations/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "task",
  "result": {},
  "error": {
    "error": {
      "type": "invalid_request_error",
      "code": "model_endpoint_mismatch",
      "message": "该模型不支持当前 endpoint。"
    }
  },
  "usage": {}
}

授权

Authorization
string
header
默认值:sk-your-api-key
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

task_id
string
必填

创建接口返回的任务 ID。

响应

任务状态。

id
string
object
string
示例:

"task"

status
enum<string>
可用选项:
queued,
running,
succeeded,
failed,
cancelled,
expired
result
object
error
object
usage
object