Skip to main content
GET
/
v1beta
/
models
List available models (Gemini format)
curl --request GET \
  --url https://api.getinfinityblue.com/v1beta/models \
  --header 'Authorization: Bearer <token>'
{
  "models": [
    {
      "name": "models/gemini-3.1-pro-preview",
      "version": "003",
      "displayName": "Gemini 3.1 Pro Preview",
      "description": "Gemini flagship multimodal model with 1M context window",
      "inputTokenLimit": 1048576,
      "outputTokenLimit": 65536,
      "supportedGenerationMethods": [
        "generateContent",
        "streamGenerateContent"
      ]
    },
    {
      "name": "models/gemini-2.5-pro",
      "version": "001",
      "displayName": "Gemini 2.5 Pro",
      "description": "Strong reasoning and code generation capabilities",
      "inputTokenLimit": 1048576,
      "outputTokenLimit": 65536,
      "supportedGenerationMethods": [
        "generateContent",
        "streamGenerateContent"
      ]
    },
    {
      "name": "models/gpt-5.4",
      "version": "001",
      "displayName": "GPT-5.4",
      "description": "GPT-5 flagship with top reasoning and agentic capabilities",
      "inputTokenLimit": 1000000,
      "outputTokenLimit": 32768,
      "supportedGenerationMethods": [
        "generateContent",
        "streamGenerateContent"
      ]
    },
    {
      "name": "models/deepseek-v4-pro",
      "version": "001",
      "displayName": "DeepSeek V4 Pro",
      "description": "DeepSeek cost-effective reasoning model",
      "inputTokenLimit": 131072,
      "outputTokenLimit": 16384,
      "supportedGenerationMethods": [
        "generateContent",
        "streamGenerateContent"
      ]
    }
  ]
}

Available models

A selection of real models available today (full list is dynamic — use the API):
namedisplayName
models/gemini-3.1-pro-previewGemini 3.1 Pro Preview
models/gemini-2.5-proGemini 2.5 Pro
models/gpt-5.4GPT-5.4
models/gpt-5.4-miniGPT-5.4 Mini
models/deepseek-v4-proDeepSeek V4 Pro
See the pricing page for the full list.

Using the Google Generative AI SDK

import google.generativeai as genai

genai.configure(
    api_key="YOUR_API_KEY",
    client_options={"api_endpoint": "https://api.getinfinityblue.com"}
)

for model in genai.list_models():
    print(model.name, model.display_name)

Field notes

supportedGenerationMethods lists the invocation modes the model supports. Common values: generateContent, streamGenerateContent, embedContent.

Authorizations

Authorization
string
header
required

Bearer token authentication, format: Authorization: Bearer sk-xxxxxx. Get your API key in the console.

Response

Successfully returned the model list

Gemini native format model list response.

models
object[]

The list of available models.