API docs · Reference
API reference (OpenAPI)
Download openapi.json and browse all endpoints.
The complete API definition is published as OpenAPI 3.1. Import it into Postman or Apifox, or use it to generate an SDK. It is built from the same schema the server validates against.
Endpoints
| Method and path | Purpose | scope |
|---|---|---|
GET /v1/models | Models, capabilities and prices available to this key | Any valid key |
POST /v1/uploads | Start an upload | assets:write |
POST /v1/uploads/{id}/parts | Get part upload URLs | assets:write |
POST /v1/uploads/{id}/complete | Complete an upload | assets:write |
POST /v1/assets | Create an asset from upload_id or source_url | assets:write |
GET /v1/assets | List assets (paginated) | assets:read |
GET · PATCH · DELETE /v1/assets/{id} | View, rename or delete an asset | assets:read / write |
/v1/asset-groups | Asset groups | assets:read / write |
POST /v1/videos/generations | Create a video task | tasks:create |
GET /v1/videos/generations/{id} | Retrieve a task | tasks:read |
GET /v1/videos/generations | List tasks (paginated) | tasks:read |
GET /v1/account/quota | Remaining quota for the account and the current key | Any valid key |
All paths are relative to https://cn-api.aitoken.tools/v1.