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

Authorization
string
header
required

JWT认证token

Response

200
application/json
成功响应
data
object[]
required

模型列表

total
integer
required

总记录数

Example:

42

page
integer

当前页码

Example:

1

page_size
integer

每页条数

Example:

20