v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBAI
Get AI credit controls
Get the organization's AI credit controls: the downgrade and shutoff thresholds, the default per-user and per-entity-group credit limits, plus read-only context (the credit limit, usage so far this billing period, and the period bounds). This is the API mirror of the AI Hub credit controls page and requires the same AI-admin permission.
get/api/v1/ai/credit-controls
Response
Current credit controls. Thresholds are null when the corresponding control is off.
Example response
{
"accountCreditLimit": 2000,
"creditsUsed": 450,
"downgradeCredits": 800,
"entityGroupDefaultCredits": 100,
"shutoffCredits": 1200,
"userDefaultCredits": 100
}