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

# Retrieve a model (Gemini API)

> GoModel API reference for GET /v1beta/models/{model}: Retrieve a model (Gemini API).



## OpenAPI

````yaml /openapi.json get /v1beta/models/{model}
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/{model}:
    get:
      tags:
        - gemini
      summary: Retrieve a model (Gemini API)
      parameters:
        - description: Model ID, e.g. gemini-2.5-flash or openai/gpt-4o-mini
          name: model
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/geminiapi.ModelInfo'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/geminiapi.ErrorResponse'
        '404':
          description: Not Found
          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.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.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/geminiapi.ErrorObject'
    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.