跳转到主要内容
GET
/
api
/
ai
/
video
/
generations
视频任务列表
curl --request GET \
  --url https://aitoearn.cn/api/ai/video/generations \
  --header 'X-Api-Key: <api-key>'
{
  "code": 0,
  "message": "请求成功",
  "data": {
    "page": 1,
    "pageSize": 1,
    "totalPages": 1,
    "total": 1,
    "list": [
      {
        "id": "string",
        "model": "string",
        "status": "string",
        "input": {
          "prompt": "string",
          "groupId": "string",
          "image": {},
          "images": [
            {}
          ],
          "audios": [
            {}
          ],
          "duration": 1,
          "aspectRatio": "string",
          "resolution": "string",
          "videoUrl": "string",
          "videos": [
            {}
          ]
        },
        "submittedAt": "2026-07-02T12:00:00.000Z",
        "startedAt": "2026-07-02T12:00:00.000Z",
        "videoUrl": "string",
        "coverUrl": "string",
        "mediaId": "string",
        "groupId": "string",
        "error": {
          "message": "string"
        },
        "finishedAt": "2026-07-02T12:00:00.000Z"
      }
    ]
  }
}

授权

X-Api-Key
string
header
必填

AiToEarn Open Platform API Key。

查询参数

page
integer
默认值:1

页码,从 1 开始,默认值1

必填范围: 1 <= x <= 9007199254740991
pageSize
integer
默认值:10

每页数量,建议结合接口限制设置合理大小,默认值1

必填范围: 1 <= x <= 1000

响应

200 - application/json

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。