API 文档接口参考
任务列表
分页查询你的生成记录(page、pageSize)
GET
/api/v1/generations需要 Bearer API Key请求
cURL
curl 'https://01router.com/api/v1/generations?page=1&pageSize=20' \
-H "Authorization: Bearer $API_KEY"输入参数
查询 / 路径参数pageinteger可选页码,从 1 开始。
默认值:1最小值:1最大值:10000pageSizeinteger可选每页记录数,范围 1–100,默认 20。
默认值:20最小值:1最大值:100
响应示例
200 · application/json
{
"object": "list",
"data": [
{
"id": "gen_example",
"object": "generation",
"model": "seedance-2.5",
"type": "video",
"provider": "01router",
"status": "processing",
"input": {
"prompt": "A red fox running through fresh snow, cinematic"
},
"outputs": [],
"error": null,
"credits": 100,
"price_usd": 1,
"created_at": "2026-10-25T08:00:00.000Z",
"completed_at": null
}
],
"total": 1,
"page": 1,
"pageSize": 20
}响应仅用于说明结构;ID、用量、价格和结果以实际请求为准。
输出字段
dataarray任务对象数组,字段与任务详情响应一致。
totalinteger匹配记录的总数。
pageinteger页码,从 1 开始。
pageSizeinteger每页记录数,范围 1–100,默认 20。
给 AI 使用
把文档索引或完整接口文档交给 AI 编程助手,包含实时模型参数。