> ## 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.

# List available models (Gemini API)

> GoModel API reference for GET /v1beta/models: List available models (Gemini API).



## OpenAPI

````yaml /openapi.json get /v1beta/models
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:
  /v1beta/models:
    get:
      tags:
        - gemini
      summary: List available models (Gemini API)
      description: >-
        Returns the same catalog as GET /v1/models in the Gemini list shape. The
        whole catalog is one page.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/geminiapi.ModelsList'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/geminiapi.ErrorResponse'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/geminiapi.ErrorResponse'
      security:
        - BearerAuth: []
        - GeminiApiKey: []
        - GeminiQueryKey: []
components:
  schemas:
    geminiapi.ModelsList:
      type: object
      properties:
        models:
          type: array
          items:
            $ref: '#/components/schemas/geminiapi.ModelInfo'
        nextPageToken:
          type: string
    geminiapi.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/geminiapi.ErrorObject'
    geminiapi.ModelInfo:
      type: object
      properties:
        description:
          type: string
        displayName:
          type: string
        inputTokenLimit:
          type: integer
        name:
          description: 'Name is the resource name: "models/" followed by the model ID.'
          type: string
        outputTokenLimit:
          type: integer
        supportedGenerationMethods:
          type: array
          items:
            type: string
    geminiapi.ErrorObject:
      type: object
      properties:
        code:
          description: Code is the HTTP status code.
          type: integer
        message:
          type: string
        status:
          description: Status is the canonical gRPC status name, e.g. INVALID_ARGUMENT.
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    GeminiApiKey:
      description: >-
        A GoModel key sent the way Gemini SDKs send theirs. Accepted on /v1beta
        routes only.
      type: apiKey
      name: x-goog-api-key
      in: header
    GeminiQueryKey:
      description: >-
        A GoModel key in the query, as plain Gemini REST calls send theirs.
        Accepted on /v1beta routes only; prefer the header, since a URL can end
        up in the logs of a proxy.
      type: apiKey
      name: key
      in: query

````

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