> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel-docs-solid-start-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List all registered models with provider info and access state



## OpenAPI

````yaml /openapi.json get /admin/models
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax, Oracle, Ollama).
    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/models:
    get:
      tags:
        - admin
      summary: List all registered models with provider info and access state
      parameters:
        - description: Filter by model category
          name: category
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/admin.modelInventoryResponse'
                maxItems: 10000
                description: Bounded by maxItems=10000.
        '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:
    admin.modelInventoryResponse:
      type: object
      properties:
        access:
          $ref: '#/components/schemas/admin.modelAccessResponse'
        model:
          $ref: '#/components/schemas/core.Model'
        provider_name:
          type: string
        provider_type:
          type: string
        selector:
          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'
    admin.modelAccessResponse:
      type: object
      properties:
        default_enabled:
          type: boolean
        effective_enabled:
          type: boolean
        override:
          $ref: '#/components/schemas/modeloverrides.Override'
        selector:
          type: string
        user_paths:
          type: array
          items:
            type: string
    core.Model:
      type: object
      properties:
        created:
          type: integer
        id:
          type: string
        metadata:
          description: >-
            Metadata holds optional enrichment data (display name, pricing,
            capabilities, etc.).

            May be nil if the model was not found in the external registry.
          allOf:
            - $ref: '#/components/schemas/core.ModelMetadata'
        object:
          type: string
        owned_by:
          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
    modeloverrides.Override:
      type: object
      properties:
        created_at:
          type: string
        model:
          type: string
        provider_name:
          type: string
        selector:
          type: string
        updated_at:
          type: string
        user_paths:
          type: array
          items:
            type: string
    core.ModelMetadata:
      type: object
      properties:
        capabilities:
          type: object
          additionalProperties:
            type: boolean
        categories:
          type: array
          items:
            $ref: '#/components/schemas/core.ModelCategory'
        context_window:
          type: integer
        description:
          type: string
        display_name:
          type: string
        family:
          type: string
        max_output_tokens:
          type: integer
        modes:
          type: array
          items:
            type: string
        pricing:
          $ref: '#/components/schemas/core.ModelPricing'
        pricing_sources:
          type: object
          additionalProperties:
            type: string
        rankings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/core.ModelRanking'
        tags:
          type: array
          items:
            type: string
    core.ModelCategory:
      type: string
      enum:
        - all
        - text_generation
        - embedding
        - image
        - audio
        - video
        - utility
      x-enum-varnames:
        - CategoryAll
        - CategoryTextGeneration
        - CategoryEmbedding
        - CategoryImage
        - CategoryAudio
        - CategoryVideo
        - CategoryUtility
    core.ModelPricing:
      type: object
      properties:
        audio_input_per_mtok:
          type: number
        audio_output_per_mtok:
          type: number
        batch_input_per_mtok:
          type: number
        batch_output_per_mtok:
          type: number
        cache_write_per_mtok:
          type: number
        cached_input_per_mtok:
          type: number
        currency:
          type: string
        input_per_image:
          type: number
        input_per_mtok:
          type: number
        output_per_mtok:
          type: number
        per_character_input:
          type: number
        per_image:
          type: number
        per_page:
          type: number
        per_request:
          type: number
        per_second_input:
          type: number
        per_second_output:
          type: number
        reasoning_output_per_mtok:
          type: number
        tiers:
          type: array
          items:
            $ref: '#/components/schemas/core.ModelPricingTier'
    core.ModelRanking:
      type: object
      properties:
        as_of:
          type: string
        elo:
          type: number
        rank:
          type: integer
    core.ModelPricingTier:
      type: object
      properties:
        input_per_mtok:
          type: number
        output_per_mtok:
          type: number
        up_to_mtok:
          type: number
        up_to_tokens:
          type: integer
          minimum: 1
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````