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"

输入参数

查询 / 路径参数
page
integer可选

页码,从 1 开始。

默认值:1
最小值:1
最大值:10000
pageSize
integer可选

每页记录数,范围 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、用量、价格和结果以实际请求为准。

输出字段

data
array

任务对象数组,字段与任务详情响应一致。

total
integer

匹配记录的总数。

page
integer

页码,从 1 开始。

pageSize
integer

每页记录数,范围 1–100,默认 20。

给 AI 使用

把文档索引或完整接口文档交给 AI 编程助手,包含实时模型参数。