列出可用模型(OpenAI 格式)
curl --request GET \
--url https://api.getinfinityblue.com/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getinfinityblue.com/v1/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/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
}
]
}{
"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)
列出可用模型(OpenAI 格式)
以 OpenAI 兼容格式返回 InfinityBlue 当前全部可用模型
GET
/
v1
/
models
列出可用模型(OpenAI 格式)
curl --request GET \
--url https://api.getinfinityblue.com/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getinfinityblue.com/v1/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/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
}
]
}{
"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>"
}
}返回的模型列表
以下是部分真实可用的模型 ID(完整列表以接口返回为准):| 模型 ID | 说明 |
|---|---|
gpt-5.4 | GPT-5 系列旗舰,顶级推理 / 编码 / Agentic,1M 上下文 |
gpt-5.4-mini | 轻量均衡版,适合高频调用与兜底 |
gemini-3.1-pro-preview | Gemini 旗舰,强多模态,1M 上下文 |
gemini-2.5-pro | Gemini 2.5 Pro,强推理与代码 |
deepseek-v4-pro | DeepSeek 高性价比推理模型 |
gpt-image-2 | GPT Image 生成模型 |
doubao-seedance-2-0-260128 | 字节豆包 Seedance 视频生成模型 |
使用 OpenAI SDK
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)
⌘I