/api/v1/creditsGet the organization credit balance
OpenRouter's credits shape for the organization that owns the key. Both figures are USD; total_credits - total_usage is the current wallet balance. Any key of the organization may call it.
Authentication: Bearer API key in the Authorization header
Responses
200The credit balance.
Response
dataobjectrequireddata
total_creditsnumberrequiredEvery grant and top-up to date, USD.
total_usagenumberrequiredWhat has drawn the grants down, USD.
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404The resource does not exist or belongs to another organization.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl https://api.experientiallabs.ai/api/v1/credits \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"data": {
"total_credits": 125,
"total_usage": 41.372915
}
}https://api.experientiallabs.ai/api/v1/credits