列出所有视频

GET/v1/videos

列出您账户下的所有视频生成任务。

认证

Authorization Bearer

在 Authorization 请求头中使用 API Key 作为 Bearer Token。

查询参数

limitintegerdefault:20

最大返回数量。

afterstring

向前分页的游标。

beforestring

向后分页的游标。

orderstringdefault:desc

按 created_at 排序的方向。

Available options: asc desc

Response

objectstringdefault:list

对象类型,固定为 list。

dataobject[]

视频任务对象列表。

data.idstring

视频任务 ID。

data.objectstringdefault:video

对象类型,固定为 video。

data.statusstring

任务状态。

data.modelstring

使用的模型。

data.promptstring

输入提示词。

data.created_atinteger

Unix 创建时间戳。

has_moreboolean

是否还有更多结果。

first_idstring | null

data 中第一个元素的 ID;为空列表时返回 null。

last_idstring | null

data 中最后一个元素的 ID;为空列表时返回 null。

请求

Shell
1curl https://api.token360.ai/v1/videos \
2  -H "Authorization: Bearer sk-your-api-key"

响应

JSON
1{
2  "object": "list",
3  "data": [
4    {
5      "id": "your-video-id",
6      "object": "video",
7      "status": "completed",
8      "model": "seedance-2.0",
9      "prompt": "A cat playing piano...",
10      "created_at": 1701476542
11    }
12  ],
13  "has_more": false,
14  "first_id": "your-video-id",
15  "last_id": "your-video-id"
16}
此页面对您有帮助吗?