cURL
curl --request GET \ --url https://api.example.com/api/ai/credits \ --header 'Authorization: Bearer <token>'
{ "credits": 123, "usage": 123 }
Get remaining credits for the current API key from OpenRouter
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Remaining credits information
Remaining credits balance
Total usage amount