> ## Documentation Index
> Fetch the complete documentation index at: https://gproxy.leenhawk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /admin/api/default-model-catalog



## OpenAPI

````yaml /generated/openapi.json get /admin/api/default-model-catalog
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/default-model-catalog:
    get:
      tags:
        - Management
      summary: GET /admin/api/default-model-catalog
      parameters:
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_DefaultModelCatalogDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Output_DefaultModelCatalogDto:
      description: >-
        The bundled catalog, exactly as the asset spells it. Its numbers are

        checked against its own rows at load: a truncated asset is a build
        problem

        and should be found once, not per lookup.
      properties:
        models:
          items:
            $ref: '#/components/schemas/Output_DefaultModelDto'
          type: array
        schemaVersion:
          format: uint32
          minimum: 0
          type: integer
        source:
          $ref: '#/components/schemas/Output_DefaultModelCatalogSourceDto'
      required:
        - schemaVersion
        - source
        - models
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_DefaultModelDto:
      additionalProperties: true
      description: >-
        One catalog entry. `model_id` is the unqualified model name; the

        unmodelled keys — modalities, supported parameters, reasoning levels —
        stay

        in `metadata`, which is exactly the shape the `models.metadata` column

        holds.
      properties:
        contextWindow:
          default: null
          format: int64
          type:
            - integer
            - 'null'
        displayName:
          default: null
          type:
            - string
            - 'null'
        maxOutputTokens:
          default: null
          format: int64
          type:
            - integer
            - 'null'
        modelId:
          type: string
        pricing:
          anyOf:
            - $ref: '#/components/schemas/Output_DefaultModelPricingDto'
            - type: 'null'
          default: null
      required:
        - modelId
        - displayName
        - contextWindow
        - maxOutputTokens
        - pricing
      type: object
    Output_DefaultModelCatalogSourceDto:
      additionalProperties: true
      properties:
        catalog:
          type: string
        fetchedAt:
          type: string
        pricedModels:
          format: uint
          minimum: 0
          type: integer
        totalModels:
          format: uint
          minimum: 0
          type: integer
      required:
        - catalog
        - fetchedAt
        - totalModels
        - pricedModels
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_DefaultModelPricingDto:
      description: |-
        The price book for one model: a glob, its rates, and the context or
        service-tier overrides above them.
      properties:
        modelPattern:
          description: |-
            A `*fragment*` glob. The longer the fragment, the more specific the
            rule, which is what `priority` encodes.
          type: string
        priority:
          format: int64
          type: integer
        rates:
          items:
            $ref: '#/components/schemas/Output_DefaultModelPriceRateDto'
          type: array
        tiers:
          default: null
          items:
            $ref: '#/components/schemas/Output_DefaultModelTierDto'
          type:
            - array
            - 'null'
      required:
        - modelPattern
        - priority
        - rates
        - tiers
      type: object
    Output_DefaultModelPriceRateDto:
      properties:
        conditions:
          default: null
        metric:
          type: string
        price:
          description: 'A decimal string: this is money and must not pass through a float.'
          type: string
        priority:
          format: int64
          type: integer
        unitSize:
          description: '`1000000` for the token metrics, `1` for counted ones.'
          format: uint64
          minimum: 0
          type: integer
      required:
        - conditions
        - metric
        - unitSize
        - price
        - priority
      type: object
    Output_DefaultModelTierDto:
      description: >-
        A long-context or service-tier override. Every price is optional and
        every

        absent one inherits the rule's rates.
      properties:
        audioInputPrice:
          default: null
          type:
            - string
            - 'null'
        audioOutputPrice:
          default: null
          type:
            - string
            - 'null'
        cacheCreationPerMillion:
          default: []
          items:
            $ref: '#/components/schemas/Output_CacheCreationPriceDto'
          type: array
        cacheReadPrice:
          default: null
          type:
            - string
            - 'null'
        cachedAudioInputPrice:
          default: null
          type:
            - string
            - 'null'
        imageOutputPrice:
          default: null
          type:
            - string
            - 'null'
        inputPrice:
          default: null
          type:
            - string
            - 'null'
        minPromptTokens:
          default: null
          format: int64
          type:
            - integer
            - 'null'
        multiplier:
          default: null
          type:
            - string
            - 'null'
        outputPrice:
          default: null
          type:
            - string
            - 'null'
        serviceTier:
          default: null
          type:
            - string
            - 'null'
      required:
        - serviceTier
        - minPromptTokens
        - multiplier
        - inputPrice
        - outputPrice
        - cacheReadPrice
        - cacheCreationPerMillion
        - imageOutputPrice
        - audioInputPrice
        - audioOutputPrice
        - cachedAudioInputPrice
      type: object
    Output_CacheCreationPriceDto:
      description: A cache-write price per million tokens. No TTL is the fallback price.
      properties:
        price:
          type: string
        ttlSeconds:
          default: null
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
      required:
        - ttlSeconds
        - price
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [POST /admin/api/default-model-catalog/apply-prices](https://gproxy.leenhawk.com/api-reference/management/post-adminapidefault-model-catalogapply-prices.md)
- [GET /admin/api/models](https://gproxy.leenhawk.com/api-reference/management/get-adminapimodels.md)
- [GET /admin/api/model-names](https://gproxy.leenhawk.com/api-reference/management/get-adminapimodel-names.md)
- [GET /admin/api/models/{id}](https://gproxy.leenhawk.com/api-reference/management/get-adminapimodels-1.md)
- [GET /admin/api/provider-models](https://gproxy.leenhawk.com/api-reference/management/get-adminapiprovider-models.md)


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