查询当前 token 可见的 LLM Custom 模型清单
curl --request GET \
--url https://api.aihubmax.com/v1/configs/llm_generations_models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aihubmax.com/v1/configs/llm_generations_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.aihubmax.com/v1/configs/llm_generations_models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aihubmax.com/v1/configs/llm_generations_models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aihubmax.com/v1/configs/llm_generations_models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aihubmax.com/v1/configs/llm_generations_models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/configs/llm_generations_models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "claude-opus-4-7",
"object": "model",
"capabilities": [
"text",
"vision",
"file"
]
},
{
"id": "gemini-3.5-flash",
"object": "model",
"capabilities": [
"text",
"vision",
"video",
"audio",
"file"
]
},
{
"id": "gpt-5.5",
"object": "model",
"capabilities": [
"text",
"vision"
]
}
]
}获取模型列表
返回当前 token 在 POST /v1/llm/generations(llm-custom 协议)下实际可用的模型,及每个模型支持能力的并集。客户端可凭此动态构建模型选择 UI,无需依赖静态枚举。
- 认证:与提交端点共用 Bearer Token,按 token 所属分组过滤可见模型
id:可直接填入LLMCustomRequest.model字段的模型名capabilities:该模型支持能力的并集,顺序固定text→vision→video→audio→file- 当前 token 分组下无任何可达模型时,返回
200 { "object": "list", "data": [] }(不是 404)
GET
/
v1
/
configs
/
llm_generations_models
查询当前 token 可见的 LLM Custom 模型清单
curl --request GET \
--url https://api.aihubmax.com/v1/configs/llm_generations_models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aihubmax.com/v1/configs/llm_generations_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.aihubmax.com/v1/configs/llm_generations_models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aihubmax.com/v1/configs/llm_generations_models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aihubmax.com/v1/configs/llm_generations_models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aihubmax.com/v1/configs/llm_generations_models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/configs/llm_generations_models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "claude-opus-4-7",
"object": "model",
"capabilities": [
"text",
"vision",
"file"
]
},
{
"id": "gemini-3.5-flash",
"object": "model",
"capabilities": [
"text",
"vision",
"video",
"audio",
"file"
]
},
{
"id": "gpt-5.5",
"object": "model",
"capabilities": [
"text",
"vision"
]
}
]
}