跳转到主要内容
GET /v1/models/{model} 使用 Bearer 认证,传入原始模型 ID 作为经过 URL 编码的路径参数,无请求体。不要混入 Claude 专用认证头,否则返回结构可能切换为原生模型格式。 成功返回一个模型对象,不含列表的 data 包装。当前实现对不可见或不存在的模型可能返回 HTTP 200 + error.code: model_not_found,必须先检查 error,再检查 id / object。认证、网关或代理错误仍可能使用非 200 状态。 created 是元数据时间戳,不代表实际上架时间;supported_endpoint_types 是部署元数据提示,不保证具体参数、流式或工具支持。详情与列表的筛选规则不完全相同,不应用单模型查询替代实际调用验收。 模型 ID 含 / 时,即使编码为 %2F,代理或路由仍可能拆分路径。此时使用模型列表并在客户端按完整 ID 查找,不裁剪模型名称。 单模型可运行示例 · 错误处理 Read in English

授权

Authorization
string
header
必填

模型调用 API Key,不是控制台登录凭据 / Model API key, not console login credentials

路径参数

model
string
必填

经过 URL 编码的完整标识 / Complete URL-encoded identifier

响应

成功结构仍需检查业务字段 / Check business fields even on HTTP success

id
string
必填

模型列表返回的原始 ID;需要支持当前接口 / Exact ID from the model list; must support this endpoint

示例:

"YOUR_MODEL_ID"

object
string
示例:

"model"

created
integer

元数据时间戳,不代表实际上架时间 / Metadata timestamp, not necessarily the publication date

owned_by
string

部署返回的模型归属标识 / Model ownership label returned by the deployment

supported_endpoint_types
string[] | null

部署元数据提示,不保证每项具体参数能力 / Deployment metadata hints, not guarantees for every parameter