模型列表
模型列表
获取当前账户可用的所有AI模型列表,包括文本模型、图像模型、语音模型、视频模型等。
GET
/
models
Copy
curl --request GET \
--url https://geekai.co/api/v1/models \
--header 'Authorization: Bearer <token>'
Copy
{
"data": [
{
"id": "gpt-4",
"name": "GPT-4",
"type": "chat",
"status": "active",
"created": 1689127080,
"owned_by": "openai",
"context_window": 8192,
"pricing": {
"input": 0.15,
"output": 0.2
},
"capabilities": [
"function_call",
"vision",
"streaming"
],
"limitations": {
"max_tokens": 4096,
"max_requests_per_min": 60
},
"platform": {
"name": "openai",
"alias": "OpenAI",
"website": "https://openai.com"
}
}
],
"total": 42,
"page": 1,
"page_size": 20
}
cURL 请求示例
Copy
curl --location 'https://geekai.co/api/v1/models' --header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}'
Postman 请求响应示例
Authorizations
JWT认证token
Response
200
application/json
成功响应
The response is of type object
.
Copy
curl --request GET \
--url https://geekai.co/api/v1/models \
--header 'Authorization: Bearer <token>'
Copy
{
"data": [
{
"id": "gpt-4",
"name": "GPT-4",
"type": "chat",
"status": "active",
"created": 1689127080,
"owned_by": "openai",
"context_window": 8192,
"pricing": {
"input": 0.15,
"output": 0.2
},
"capabilities": [
"function_call",
"vision",
"streaming"
],
"limitations": {
"max_tokens": 4096,
"max_requests_per_min": 60
},
"platform": {
"name": "openai",
"alias": "OpenAI",
"website": "https://openai.com"
}
}
],
"total": 42,
"page": 1,
"page_size": 20
}
助手
Responses are generated using AI and may contain mistakes.