AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Account and usageBilling

Query billing statistics

Query model usage, call counts, and consumption by time interval.

POST/bill/stats

Aggregate model usage, duration, calls, and amount by time interval. tokenName/modelName optionally filter records. A successful response has an empty data array when nothing matches.

Authorization

billingToken
token<token>

Billing authentication token, sent in the token Header without Bearer. In Try It, enter the system access token generated in personal settings; the billing credential is obtained automatically. Code examples show the full process.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json