/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.
認証: AuthorizationヘッダーにBearer形式のAPIキー
レスポンス
200The credit balance.
レスポンス
dataobject必須data
total_creditsnumber必須Every grant and top-up to date, USD.
total_usagenumber必須What has drawn the grants down, USD.
401Missing, unknown or revoked API key.
レスポンス
errorstring必須Human-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.
レスポンス
errorstring必須Human-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).
リクエスト
curl https://api.experientiallabs.ai/api/v1/credits \
-H "Authorization: Bearer YOUR_API_KEY"レスポンス
{
"data": {
"total_credits": 125,
"total_usage": 41.372915
}
}https://api.experientiallabs.ai/api/v1/credits