API keys
Create keys, set budgets and limits, and revoke a key.
Create an API key
Create a key under API keys. You see it only once, so copy it right away.
Budget, allowed models and expiry date
Limit what a key can spend, which models it can use and how long it works.
Revoke a key
Revoking a key works immediately and can’t be undone.
A key has leaked
Revoke it right away, create a new one and check your usage.
Topics
Still stuck? Contact support
Ask Miles in your dashboard, or talk to a person. Writing about an API call? Send the request ID along.