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

# List available models (OpenAI format)

> Return all InfinityBlue models in OpenAI-compatible format

## Available models

A selection of real model IDs available today (full list is dynamic — use the API):

| Model ID                     | Notes                                                         |
| ---------------------------- | ------------------------------------------------------------- |
| `gpt-5.4`                    | GPT-5 flagship — top reasoning / coding / agentic, 1M context |
| `gpt-5.4-mini`               | Lightweight and balanced — ideal for high-volume workloads    |
| `gemini-3.1-pro-preview`     | Gemini flagship — strong multimodal, 1M context               |
| `gemini-2.5-pro`             | Gemini 2.5 Pro — strong reasoning and coding                  |
| `deepseek-v4-pro`            | DeepSeek cost-effective reasoning model                       |
| `gpt-image-2`                | GPT Image generation model                                    |
| `doubao-seedance-2-0-260128` | ByteDance Seedance video generation model                     |

See the [pricing page](https://api.getinfinityblue.com/pricing) for the full list.

## Using the OpenAI SDK

```python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.getinfinityblue.com/v1"
)

models = client.models.list()
for model in models.data:
    print(model.id)
```


## OpenAPI

````yaml /openapi/models.en.yaml get /v1/models
openapi: 3.1.0
info:
  title: InfinityBlue API — Models
  version: 1.0.0
  summary: List currently available AI models
  description: >
    This file covers the InfinityBlue model listing endpoints:


    - `GET /v1/models` — OpenAI-compatible format, works with any OpenAI SDK

    - `GET /v1beta/models` — Gemini native format, works with the Google
    Generative AI SDK


    Both endpoints expose the same underlying pool of models in different
    response shapes.

    The model list is dynamic and updated as InfinityBlue onboards new
    providers.

    See the [pricing page](https://api.getinfinityblue.com/pricing) for the full
    list and pricing.


    ## Authentication


    Every request must include your API key in the header:


    ```

    Authorization: Bearer YOUR_API_KEY

    ```


    Create and manage your API keys in the
    [console](https://api.getinfinityblue.com/console).
  contact:
    name: InfinityBlue
    url: https://getinfinityblue.com
servers:
  - url: https://api.getinfinityblue.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Models
    description: |
      List all AI models currently available through InfinityBlue.
      Supports both the OpenAI-compatible and Gemini native response formats.
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List available models (OpenAI format)
      description: >
        Returns the list of all currently available models in OpenAI-compatible
        format.

        Works with the OpenAI SDK out of the box — point `base_url` at
        InfinityBlue

        and call `client.models.list()` with no other changes.


        The model list is dynamic and reflects the latest set of models
        available

        through InfinityBlue.
      operationId: listModels
      responses:
        '200':
          description: Successfully returned the model list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelListResponse'
              examples:
                default:
                  summary: Typical response
                  value:
                    object: list
                    data:
                      - id: gpt-5.4
                        object: model
                        created: 1700000000
                        owned_by: openai
                      - id: gpt-5.4-mini
                        object: model
                        created: 1700000001
                        owned_by: openai
                      - id: gemini-3.1-pro-preview
                        object: model
                        created: 1700000002
                        owned_by: google
                      - id: gemini-2.5-pro
                        object: model
                        created: 1700000003
                        owned_by: google
                      - id: deepseek-v4-pro
                        object: model
                        created: 1700000004
                        owned_by: deepseek
                      - id: gpt-image-2
                        object: model
                        created: 1700000005
                        owned_by: openai
                      - id: doubao-seedance-2-0-260128
                        object: model
                        created: 1700000006
                        owned_by: bytedance
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ModelListResponse:
      type: object
      description: OpenAI-format model list response.
      properties:
        object:
          type: string
          description: Object type, always `list`.
          examples:
            - list
        data:
          type: array
          description: The list of available models.
          items:
            $ref: '#/components/schemas/ModelInfo'
    ErrorResponse:
      type: object
      description: Standard error response.
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message.
              examples:
                - Invalid API key provided.
            type:
              type: string
              description: Error type.
              examples:
                - invalid_request_error
            param:
              type:
                - string
                - 'null'
              description: The parameter related to the error, or null if not applicable.
              examples:
                - model
            code:
              type:
                - string
                - 'null'
              description: Machine-readable error code, or null if not applicable.
              examples:
                - invalid_api_key
    ModelInfo:
      type: object
      description: A single model descriptor in OpenAI format.
      properties:
        id:
          type: string
          description: |
            Model ID used in the `model` parameter of other endpoints.
            For example: `gpt-5.4`, `gemini-2.5-pro`, `deepseek-v4-pro`.
          examples:
            - gpt-5.4
        object:
          type: string
          description: Object type, always `model`.
          examples:
            - model
        created:
          type: integer
          description: Unix timestamp (seconds) when the model was created.
          examples:
            - 1700000000
        owned_by:
          type: string
          description: Vendor identifier, e.g. `openai`, `google`, `deepseek`, `bytedance`.
          examples:
            - openai
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >
        Bearer token authentication, format: `Authorization: Bearer sk-xxxxxx`.

        Get your API key in the
        [console](https://api.getinfinityblue.com/console).

````