AI 模型接口视频(Videos)Sora格式
获取视频任务状态
接口
GET /v1/videos/{task_id}
请求头
| Header | 必填 | 说明 |
|---|---|---|
Authorization | 是 | Bearer <token> |
Accept | 是 | application/json |
路径参数
| 字段 | 必填 | 类型 | 说明 |
|---|---|---|---|
task_id | 是 | string | 视频任务 ID |
响应参数
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 视频任务 ID |
object | string | 对象类型 |
model | string | 使用的模型 |
status | string | 任务状态 |
progress | integer | 进度百分比 |
created_at | integer | 创建时间戳 |
seconds | string | 视频时长 |
错误响应
404 Not Found
| 字段 | 类型 | 说明 |
|---|---|---|
error.message | string | 错误信息 |
error.type | string | 错误类型 |
error.param | string | null | 相关参数 |
error.code | string | null | 错误代码 |
说明
status用于表示任务当前进度。- 任务完成后可继续通过内容接口获取视频文件。
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"
}
}