What a request costs
Cost is the model’s list price times tokens. The price per token is in the model object fromGET /v1/models, and every response reports what it was charged:
A request that is rejected before reaching a model, for example by a rate limit or a routing
constraint, costs nothing.
Add credits
- Card: pay from the Credits page, 5 to 1,000 USD per payment.
- Auto-recharge: choose a threshold and an amount, both at least 5 USD; when the balance drops below the threshold, the amount is charged to the saved card.
Limits on spend
Set a budget on an API key when you create it. When the key reaches its budget, or the account’s quota is used up, requests return402 with error.type insufficient_quota and a message naming
which limit was hit.