Skip to main content
GET
/
credits
Get remaining credits
curl --request GET \
  --url https://openrouter.ai/api/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "total_credits": 100.5,
    "total_usage": 25.75
  }
}

Authorizations

Authorization
string
header
required

API key as bearer token in Authorization header

Response

Returns the total credits purchased and used

Total credits purchased and used

data
object
required
Example:
{
  "total_credits": 100.5,
  "total_usage": 25.75
}