API 参考
获取模型列表
GET
/v1/models获取当前 Key 可用的模型列表,返回 OpenAI 格式。目录按分组、模型权限与可用能力筛选;聊天模型使用 Chat Completions 接口。
鉴权与权限
使用当前 GloopAPI Key。模型、功能与权限以当前 Key 的目录及接口说明为准。
Authorization: Bearer $GLOOP_API_KEY鉴权方案: BearerAuth
响应与错误
HTTP 200
成功获取模型列表
application/json
- 类型
- object
HTTP 401
认证失败
application/json
- 类型
- object
errorobject选填
HTTP 403
IP、账户、模型或工具权限不足。
application/json
- 类型
- object
- 必填字段
error
errorobject必填error 子字段(4)
codestring选填messagestring选填typestring选填request_idstring选填
HTTP 429
请求/队列限流。
application/json
- 类型
- object
- 必填字段
error
errorobject必填error 子字段(4)
codestring选填messagestring选填typestring选填request_idstring选填
HTTP 500
鉴权或数据存储内部失败。
application/json
- 类型
- object
- 必填字段
error
errorobject必填error 子字段(4)
codestring选填messagestring选填typestring选填request_idstring选填