API 参考
获取模型列表
/v1/models获取当前 Key 可用的轻量模型列表,返回 OpenAI 格式。按分组、权限与可用路由筛选。列表保留能力信息,以 pricing_summary 替代完整 price_lines;完整价格明细统一按需读取 GET /v1/models/{model}。model_kind 按类型精确过滤,未知类型返回空列表。不提供 full/summary 模式,不默认分页。价格摘要与类型筛选是 GloopAPI 扩展。
鉴权与权限
使用当前 GloopAPI Key。模型、功能与权限以当前 Key 的目录及接口说明为准。
Authorization: Bearer $GLOOP_API_KEY鉴权方案: BearerAuth
请求
请求头
If-None-Matchstring选填使用上次同一查询的 ETag 验证本地缓存。每次仍校验当前 Key 权限。
查询参数
model_kindstring选填按 model_kind 精确过滤,例如 chat、image、video;过滤不会扩大 Key 权限。
响应与错误
HTTP 200
成功获取模型列表
- 响应头 ETag
{"schema":{"type":"string"},"description":"当前授权结果的内容标识。"}- 响应头 Cache-Control
{"schema":{"type":"string"},"description":"private, no-cache:禁止共享缓存,每次使用前重新验证。"}
application/json
- 类型
- object
objectstring选填dataarray选填data 子字段(1)
[]object选填[] 子字段(13)
idstring选填模型 ID
objectstring选填对象类型
createdinteger选填创建时间戳
owned_bystring选填模型所有者
model_kindstring选填平台模型大类。缺失或 unclassified 时不要根据模型名称猜测。
- 枚举
["chat","image","video","speech","multimodal","unclassified"]
display_namestring选填展示名称;调用仍使用 id。
descriptionstring选填公开模型说明。
capability_tagsarray选填明确支持的能力标签,例如 reasoning、tool-calling、vision、structured-output、text-to-video、image-to-video。仅用于展示和筛选;可执行参数以专用能力接口为准。
capability_tags 子字段(1)
[]string选填
labelsarray选填统一展示标签;未知值不产生标签。new 仅在配置的官网收录日期起七天内返回。
labels 子字段(1)
[]string选填- 枚举
["uncensored","private","anonymized","new"]
model_specobject选填安全投影的模型规格;不包含请求覆盖参数、渠道、执行模型 ID 或内部备注。
model_spec 子字段(6)
versioninteger选填- 枚举
[1]
capabilitiesobject选填capabilities 子字段(1)
[key]string选填- 枚举
["unknown","supported","unsupported"]
reasoningobject选填仅在模型已确认支持推理且所有可用路由共同支持时返回。未出现不代表可关闭或可调节。
reasoning 子字段(2)
supported_effortsarray选填- 最多项数
6- 项不可重复
true
supported_efforts 子字段(1)
[]string选填- 枚举
["none","minimal","low","medium","high","xhigh"]
default_effortstring选填- 枚举
["none","minimal","low","medium","high","xhigh"]
limitsobject选填已知上下文、输出限制及图片尺寸等规格。未知字段省略。
contentobject选填content 子字段(1)
uncensoredstring选填- 枚举
["unknown","supported","unsupported"]
public_displayobject选填public_display 子字段(3)
added_onstring选填管理员已核实的官网收录日期;不是创建时间或自动推断的首次上架时间。
- 格式
"date"
privacy_levelstring选填明确配置的对外标签;需结合 privacy_statement 解释范围。
- 枚举
["private","anonymized"]
privacy_statementstring选填可公开的隐私说明,不代表所有第三方模型具有相同的数据处理政策。
pricing_summaryarray选填模型列表提供。按 label、unit、currency 分组;min/max 是已知固定配置范围,不是报价;variable=true 表示包含动态或未知价格;缺价不等于免费。完整明细读取单模型详情。
pricing_summary 子字段(1)
[]object选填[] 子字段(6)
labelstring必填unitstring必填currencystring必填min_amountnumber选填max_amountnumber选填variableboolean必填
supported_endpoint_typesarray选填支持的 API 端点类型,客户端据此选择生成接口。
supported_endpoint_types 子字段(1)
[]string选填
audioobject选填
HTTP 304
当前授权目录与 ETag 相同,无响应体;仅允许私有缓存,每次使用前重新验证。
无响应正文。
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选填