> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel.enterpilot.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get cached-only usage overview

> GoModel API reference for GET /admin/cache/overview: Get cached-only usage overview.



## OpenAPI

````yaml /openapi.json get /admin/cache/overview
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, Fireworks AI, Meta, OpenRouter, Kilo AI, DeepSeek, Z.ai, xAI,
    MiniMax, Xiaomi MiMo, Mistral AI, 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/cache/overview:
    get:
      tags:
        - admin
      summary: Get cached-only usage overview
      parameters:
        - description: Number of days (default 30)
          name: days
          in: query
          schema:
            type: integer
        - description: Start date (YYYY-MM-DD)
          name: start_date
          in: query
          schema:
            type: string
        - description: End date (YYYY-MM-DD)
          name: end_date
          in: query
          schema:
            type: string
        - description: 'Grouping interval: daily, weekly, monthly, yearly (default daily)'
          name: interval
          in: query
          schema:
            type: string
        - description: Filter by exact model names; repeat or comma-separate for several
          name: model
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: >-
            Filter by provider names or types; repeat or comma-separate for
            several
          name: provider
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: Filter by request labels (exact match); repeat for several
          name: label
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: >-
            Filter by exact request endpoints, e.g.
            /v1/chat/completions,/v1/messages; repeat or comma-separate for
            several
          name: endpoint
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: >-
            Filter by comma-separated operations, e.g.
            chat_completions,embeddings
          name: operation
          in: query
          schema:
            type: string
        - description: Filter by exact detected session ID
          name: session_id
          in: query
          schema:
            type: string
        - description: Filter by managed auth key IDs; repeat or comma-separate for several
          name: auth_key_id
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: Filter by tracked user path subtrees; repeat for several
          name: user_path
          in: query
          explode: true
          schema:
            type: array
            items:
              type: string
        - description: >-
            Cache mode filter: uncached, cached, all (cache overview always uses
            cached mode)
          name: cache_mode
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/usage.CacheOverview'
        '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'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    usage.CacheOverview:
      type: object
      properties:
        daily:
          type: array
          items:
            $ref: '#/components/schemas/usage.CacheOverviewDaily'
        summary:
          $ref: '#/components/schemas/usage.CacheOverviewSummary'
    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.CacheOverviewDaily:
      type: object
      properties:
        date:
          type: string
        exact_hits:
          type: integer
        hits:
          type: integer
        input_tokens:
          type: integer
        output_tokens:
          type: integer
        saved_cost:
          type: number
        semantic_hits:
          type: integer
        total_tokens:
          type: integer
    usage.CacheOverviewSummary:
      type: object
      properties:
        exact_hits:
          type: integer
        semantic_hits:
          type: integer
        total_hits:
          type: integer
        total_input_tokens:
          type: integer
        total_output_tokens:
          type: integer
        total_saved_cost:
          type: number
        total_tokens:
          type: integer
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
        - permission_error
        - internal_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
        - ErrorTypePermission
        - ErrorTypeInternal
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.