GRGlobalRouter Docs
Console

Credits and usage / GET

Get credits

Query credits and usage for the current tenant.

endpoint list

Mobile view shows the endpoint list. Use desktop view for parameters and examples.

MethodEndpointDescription
GET/api/v1/creditsQuery credits and usage for the current tenant.
GET/api/v1/generationquery generation metadata。
GET/api/v1/generation/contentRead content associated with a generation.
GET/api/v1/credits

Return the GlobalRouter balance and cumulative usage. This endpoint does not return upstream API keys or directly represent the official OpenRouter balance page.

Back to Credits and usage endpoint list

Request parameters

No required request parameters. Authentication is read from the Authorization header.

Response fields

FieldTypeRequiredDescription
dataobjectNoSee the OpenAPI schema for field details.
data.total_creditsnumberNoSee the OpenAPI schema for field details.
data.total_usagenumberNoSee the OpenAPI schema for field details.
data.voucher_balancenumberNoSee the OpenAPI schema for field details.
data.cash_balancenumberNoSee the OpenAPI schema for field details.
data.credit_balancenumberNoSee the OpenAPI schema for field details.

Errors

401UNAUTHORIZED

Missing or invalid Authorization Bearer token.

403FORBIDDEN

The current API key is not authorized for this scope, model, or management capability.

422VALIDATION_ERROR

The request body, path parameters, or query parameters do not match the endpoint schema.

Notes

  • Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.