{
"id": "YOUR_MODEL_ID",
"object": "model",
"created": 1626777600,
"owned_by": "example-provider"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}API 参考
查询单个模型
查询模型元数据并识别 HTTP 200 中的错误。
{
"id": "YOUR_MODEL_ID",
"object": "model",
"created": 1626777600,
"owned_by": "example-provider"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}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授权
模型调用 API Key,不是控制台登录凭据 / Model API key, not console login credentials
路径参数
经过 URL 编码的完整标识 / Complete URL-encoded identifier
响应
成功结构仍需检查业务字段 / Check business fields even on HTTP success
- Option 1
- Option 2
模型列表返回的原始 ID;需要支持当前接口 / Exact ID from the model list; must support this endpoint
示例:
"YOUR_MODEL_ID"
示例:
"model"
元数据时间戳,不代表实际上架时间 / Metadata timestamp, not necessarily the publication date
部署返回的模型归属标识 / Model ownership label returned by the deployment
部署元数据提示,不保证每项具体参数能力 / Deployment metadata hints, not guarantees for every parameter