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

# List available models



## OpenAPI

````yaml /openapi.json get /v1/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, 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:
  /v1/models:
    get:
      tags:
        - models
      summary: List available models
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.ModelsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.OpenAIErrorEnvelope'
      security:
        - BearerAuth: []
components:
  schemas:
    core.ModelsResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/core.Model'
        object:
          type: string
    core.OpenAIErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/core.OpenAIErrorObject'
    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.OpenAIErrorObject:
      type: object
      required:
        - code
        - message
        - param
        - type
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        type:
          $ref: '#/components/schemas/core.ErrorType'
    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.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
    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

````