AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Account and usageAPI Key management

Create API Key

Create API Key — Authenticate with an access token

Use an access token generated on the profile page, not the model API Key being managed. See Programmatic API Key management for credentials and the full workflow.

Quota conversion: remain_quota = amount * 500000. expired_time=-1 means never expires; remain_quota=-1 with unlimited_quota=true means unlimited quota.

Batch creation is supported. The request example on this page configures a single Token.

model_limits is a comma-separated string of model IDs, not an array. After creation, search by name to read configuration; the response does not guarantee the new secret Key.

POST/api/token/

Create API Tokens; batch creation is supported. Model/IP restrictions, quota, and expiry can be configured separately.

Authorization

userAccessToken
AuthorizationBearer <token>

Create an access token under Profile → Security. Use Bearer authentication, not a model API Key.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json