Credits

Get remaining credits

Changed on

Get total credits purchased and used for the authenticated user. Management key required.

get/credits

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Response

Returns the total credits purchased and used

object required

Total credits purchased and used

data, object required

Example response

{
  "data": {
    "total_credits": 100.5,
    "total_usage": 25.75
  }
}

Changes

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status