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

# List available models

> List the models available to your account through the gateway.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/models
openapi: 3.1.0
info:
  title: Infyrence API
  version: 1.0.0
  summary: Unified, OpenAI-compatible AI gateway for 200+ models.
  description: >
    Infyrence is a unified, OpenAI-compatible inference gateway. Call 200+
    models

    from every major provider through a single endpoint and one API key, with

    automatic failover and edge-fast routing.


    ## Authentication

    Authenticate every request with your Infyrence API key as a Bearer token:


    ```

    Authorization: Bearer sk-...

    ```


    Create and manage keys in your
    [dashboard](https://www.infyrence.com/dashboard/api-keys).


    ## OpenAI compatibility

    The API mirrors the OpenAI Chat Completions API. To migrate an existing

    integration, point the base URL at `https://api.infyrence.com/v1` and set
    the

    `model` to any model from `GET /v1/models`, no other changes required.


    ## Pricing

    Billing is usage-based, per model: you pay for input and output tokens at
    each

    model's published per-million-token rate. See

    [infyrence.com/pricing](https://www.infyrence.com/pricing).
  contact:
    name: Infyrence Support
    url: https://www.infyrence.com/contact
    email: support@infyrence.com
  license:
    name: Proprietary
    url: https://www.infyrence.com/terms
  termsOfService: https://www.infyrence.com/terms
servers:
  - url: https://api.infyrence.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Chat
    description: Create model responses from a list of messages.
  - name: Models
    description: List the models available through the gateway.
  - name: Health
    description: Public liveness and status endpoints.
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List available models
      description: List the models available to your account through the gateway.
      operationId: listModels
      responses:
        '200':
          description: The list of available models.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - bearerAuth: []
components:
  headers:
    X-Request-Id:
      description: >-
        A unique id for the request, echoed on every response and included in
        error bodies for tracing.
      schema:
        type: string
  schemas:
    ModelList:
      type: object
      required:
        - object
        - data
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelInfo'
    ModelInfo:
      type: object
      required:
        - id
        - object
        - created
        - owned_by
        - capabilities
      properties:
        id:
          type: string
          description: The model id to pass as `model` in a request.
        object:
          type: string
          const: model
        created:
          type: integer
        owned_by:
          type: string
        capabilities:
          type: object
          required:
            - chat
            - completions
            - embeddings
          properties:
            chat:
              type: boolean
            completions:
              type: boolean
            embeddings:
              type: boolean
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
              description: A human-readable description of the error.
            type:
              type: string
              description: >-
                The category of error, e.g. `invalid_request_error`,
                `authentication_error`, `rate_limit_error`, `upstream_error`.
            code:
              type:
                - string
                - 'null'
              description: A stable, machine-readable error code, when available.
            request_id:
              type: string
              description: The id of the failed request, for tracing with support.
      additionalProperties: false
  responses:
    Unauthorized:
      description: The API key is missing or invalid.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid API key.
              type: authentication_error
              code: invalid_api_key
              request_id: 4f0c2e1a-9b3d-4a2e-8c1f-77a0b2d5e6f1
    RateLimited:
      description: Too many requests. Retry after the interval in the `Retry-After` header.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
        X-Request-Id:
          $ref: '#/components/headers/X-Request-Id'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Rate limit exceeded. Please slow down.
              type: rate_limit_error
              code: rate_limited
              request_id: 4f0c2e1a-9b3d-4a2e-8c1f-77a0b2d5e6f1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk-...
      description: 'Your Infyrence API key, sent as `Authorization: Bearer sk-...`.'

````