AI Gateway

Get AI Gateway rate limit usage

Get live usage for the organization's rate limits. Returns requests and tokens counted in the rolling one-minute window and requests limited in the last 15 minutes for each enabled rate limit, plus untracked (traffic no enforced rate limit covers) and total (all gateway traffic).

get/api/v2/rate-limits/usage

Request

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "input_tokens": 45000,
        "limited_requests": 3,
        "output_tokens": 12000,
        "requests": 120
      },
      "id": "33333333-3333-3333-3333-333333333333",
      "type": "rate-limit-usage"
    }
  ]
}

Changes

Changes to this operation have not been checked yet.