Skip to Content
API 参考Anthropic 原生协议Models

Anthropic Models API

通过 Anthropic 原生协议查询 OfoxAI 平台上可用的模型。响应格式遵循 Anthropic API 规范(type、display_name、created_at 等字段)。

Models API 是公开接口,无需 API Key 即可调用。此端点返回所有可通过 Anthropic 协议调用的模型,不仅限于 Claude 系列。

列出所有模型

GET https://api.ofox.io/anthropic/v1/models

请求示例

Terminal
curl https://api.ofox.io/anthropic/v1/models

响应格式

{ "data": [ { "type": "model", "id": "anthropic/claude-haiku-5.5", "display_name": "Anthropic: Claude Haiku 5.5", "created_at": "2026-10-09T04:54:25Z", "owned_by": "bedrock", "canonical_slug": "claude-haiku-5-5", "description": "Claude Haiku 5.5 is Anthropic's fastest and most cost-effective model, successor to Claude Haiku 4.5, built for high-volume, latency-sensitive work such as classification, routing, extraction and sub-agent tasks. It supports a 1M-token context window, up to 128K output tokens and adaptive thinking. Prompts above 100K input tokens are billed at 5x the base rate.", "context_length": 1000000, "architecture": { "modality": "text+image+file->text", "input_modalities": [ "text", "image", "file" ], "output_modalities": [ "text" ], "tokenizer": "claude", "instruct_type": null }, "pricing": { "prompt": "0.0000001", "completion": "0.0000005", "input_cache_read": "0.00000001", "input_cache_write_5m": "0.000000125", "input_cache_write_1h": "0.0000002", "web_search": "0.015" }, "top_provider": { "context_length": 1000000, "max_completion_tokens": 128000, "is_moderated": false }, "supported_parameters": [ "temperature", "top_p", "max_tokens", "stop", "tools", "tool_choice", "response_format", "reasoning" ], "expiration_date": null, "is_deprecated": false, "aliases": [ "claude-haiku-5-5", "claude-haiku-5.5" ] } ] }

与 OpenAI 协议的字段差异

字段OpenAI 协议Anthropic 协议
类型标识"object": "model""type": "model"
名称namedisplay_name
创建时间created(Unix 时间戳)created_at(ISO 8601)

按供应商过滤模型

GET https://api.ofox.io/anthropic/v1/models/{provider}

路径参数

参数类型说明
providerstring供应商标识,如 anthropic、openai、google

请求示例

Terminal
# 仅列出 Claude 系列模型 curl https://api.ofox.io/anthropic/v1/models/anthropic

响应格式

返回格式与列出所有模型一致,data 数组仅包含指定供应商的模型。

获取模型详情

GET https://api.ofox.io/anthropic/v1/models/{provider}/{model_id}

路径参数

参数类型说明
providerstring供应商标识,如 anthropic
model_idstring模型名称,如 claude-sonnet-5.5

请求示例

Terminal
curl https://api.ofox.io/anthropic/v1/models/anthropic/claude-sonnet-5.5

响应格式

返回单个 Model 对象,结构与列表接口中的对象一致。

最后更新于