> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel-build-canonical-module-path.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the live token-throughput window

> Returns a fixed, trailing window of token-volume buckets
(input / output / prompt-cached / locally-cached) at the
requested granularity, for the overview live chart.



## OpenAPI

````yaml /openapi.json get /admin/usage/throughput
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, Fireworks AI, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax, Xiaomi
    MiMo, OpenCode Go, Oracle, Ollama, Bailian). Drop-in OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /admin/usage/throughput:
    get:
      tags:
        - admin
      summary: Get the live token-throughput window
      description: |-
        Returns a fixed, trailing window of token-volume buckets
        (input / output / prompt-cached / locally-cached) at the
        requested granularity, for the overview live chart.
      parameters:
        - description: 'Bucket granularity: second, minute, hour, day'
          name: granularity
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/usage.TokenThroughput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    usage.TokenThroughput:
      type: object
      properties:
        bucket_seconds:
          type: integer
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/usage.ThroughputBucket'
        granularity:
          type: string
    core.GatewayError:
      type: object
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        provider:
          type: string
        status_code:
          type: integer
        type:
          $ref: '#/components/schemas/core.ErrorType'
    usage.ThroughputBucket:
      type: object
      properties:
        input_tokens:
          type: integer
        locally_cached_tokens:
          type: integer
        output_tokens:
          type: integer
        prompt_cached_tokens:
          type: integer
        start:
          type: string
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````