TokenFleet
AI 模型接口视频(Videos)Sora格式

获取视频任务状态

接口

GET /v1/videos/{task_id}

请求头

Header必填说明
AuthorizationBearer <token>
Acceptapplication/json

路径参数

字段必填类型说明
task_idstring视频任务 ID

响应参数

application/json

字段类型说明
idstring视频任务 ID
objectstring对象类型
modelstring使用的模型
statusstring任务状态
progressinteger进度百分比
created_atinteger创建时间戳
secondsstring视频时长

错误响应

404 Not Found

字段类型说明
error.messagestring错误信息
error.typestring错误类型
error.paramstring | null相关参数
error.codestring | null错误代码

说明

  • status 用于表示任务当前进度。
  • 任务完成后可继续通过内容接口获取视频文件。
GET
/v1/videos/{task_id}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Path Parameters

task_id*string

视频任务 ID

Response Body

application/json

application/json

curl -X GET "https://tokenfleet.cn/v1/videos/string"
{
  "id": "string",
  "object": "string",
  "model": "string",
  "status": "string",
  "progress": 0,
  "created_at": 0,
  "seconds": "string"
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}