Skip to content

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 pathPurposescope
GET /v1/modelsModels, capabilities and prices available to this keyAny valid key
POST /v1/uploadsStart an uploadassets:write
POST /v1/uploads/{id}/partsGet part upload URLsassets:write
POST /v1/uploads/{id}/completeComplete an uploadassets:write
POST /v1/assetsCreate an asset from upload_id or source_urlassets:write
GET /v1/assetsList assets (paginated)assets:read
GET · PATCH · DELETE /v1/assets/{id}View, rename or delete an assetassets:read / write
/v1/asset-groupsAsset groupsassets:read / write
POST /v1/videos/generationsCreate a video tasktasks:create
GET /v1/videos/generations/{id}Retrieve a tasktasks:read
GET /v1/videos/generationsList tasks (paginated)tasks:read
GET /v1/account/quotaRemaining quota for the account and the current keyAny valid key

All paths are relative to https://cn-api.aitoken.tools/v1.