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 物件,結構與列表介面中的物件一致。

最後更新於