模型列表
模型列表
模型列表
模型列表
获取当前账户可用的所有AI模型列表,包括文本模型、图像模型、语音模型、视频模型等。
GET
/
models
curl --request GET \
--url https://geekai.co/api/v1/models \
--header 'Authorization: Bearer <token>'
{
"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 请求示例
curl --location 'https://geekai.co/api/v1/models' --header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}'
Postman 请求响应示例
Authorizations
JWT认证token
Response
200
application/json
成功响应
模型列表
模型唯一标识
Example:
"gpt-4"
模型显示名称
Example:
"GPT-4"
模型类型
Available options:
chat
, image
, audio
, video
, embedding
模型状态
Available options:
active
, deprecated
, beta
模型创建时间戳
Example:
1689127080
模型所有者/提供商
Example:
"openai"
上下文窗口大小(token数)
Example:
8192
模型能力列表
Example:
["function_call", "vision", "streaming"]
总记录数
Example:
42
当前页码
Example:
1
每页条数
Example:
20
curl --request GET \
--url https://geekai.co/api/v1/models \
--header 'Authorization: Bearer <token>'
{
"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
}