List available models (Gemini format)
curl --request GET \
--url https://api.getinfinityblue.com/v1beta/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getinfinityblue.com/v1beta/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getinfinityblue.com/v1beta/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
]
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Models
List available models (Gemini format)
Return all InfinityBlue models in Google Gemini native format
GET
/
v1beta
/
models
List available models (Gemini format)
curl --request GET \
--url https://api.getinfinityblue.com/v1beta/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getinfinityblue.com/v1beta/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getinfinityblue.com/v1beta/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
]
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Available models
A selection of real models available today (full list is dynamic — use the API):| name | displayName |
|---|---|
models/gemini-3.1-pro-preview | Gemini 3.1 Pro Preview |
models/gemini-2.5-pro | Gemini 2.5 Pro |
models/gpt-5.4 | GPT-5.4 |
models/gpt-5.4-mini | GPT-5.4 Mini |
models/deepseek-v4-pro | DeepSeek V4 Pro |
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
Response
Successfully returned the model list
Gemini native format model list response.
The list of available models.
Show child attributes
Show child attributes
⌘I