原生Gemini格式
以 Gemini API 格式返回可用模型列表
GET
https://api.xiexus.cn/v1beta/models
请求体:无
接口信息
方法
GET路径
/v1beta/models完整地址
https://api.xiexus.cn/v1beta/models请求体
无
标签
模型(Models)/列出模型
响应码
200
静态文件
当前接口页内已嵌入 OpenAPI JSON;如果需要查看总文件,可直接打开固定静态文件
relay.json。当前 JSON
../../../openapi/generated/ai-model/模型(Models)/列出模型/get-v1beta-models-listmodelsgemini-383826471.json总文件
../../../openapi/relay.jsonOpenAPI JSON
已将服务地址固定为
https://api.xiexus.cn,其余结构保持和源文档一致。{
"openapi": "3.1.0",
"info": {
"title": "原生Gemini格式",
"version": "1.0.0",
"description": "以 Gemini API 格式返回可用模型列表"
},
"tags": [
{
"name": "模型(Models)/列出模型"
}
],
"components": {
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "使用 Bearer Token 认证。\n格式: `Authorization: Bearer sk-xxxxxx`\n"
}
}
},
"paths": {
"/v1beta/models": {
"get": {
"tags": [
"模型(Models)/列出模型"
],
"summary": "原生Gemini格式",
"description": "以 Gemini API 格式返回可用模型列表",
"operationId": "listmodelsgemini",
"parameters": [],
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "成功获取模型列表",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"models": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"examples": [
"models/gemini-pro"
]
},
"version": {
"type": "string"
},
"displayName": {
"type": "string"
},
"description": {
"type": "string"
},
"inputTokenLimit": {
"type": "integer"
},
"outputTokenLimit": {
"type": "integer"
},
"supportedGenerationMethods": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-apifox-orders": [
"name",
"version",
"displayName",
"description",
"inputTokenLimit",
"outputTokenLimit",
"supportedGenerationMethods"
]
}
}
},
"x-apifox-orders": [
"models"
]
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.xiexus.cn",
"description": "固定生产地址"
}
]
}