Skip to Content

Anthropic Models API

透過 Anthropic 原生協議查詢 OfoxAI 平台上可用的模型。回應格式遵循 Anthropic API 規範(typedisplay_namecreated_at 等欄位)。

Models API 是公開介面,無需 API Key 即可呼叫。此端點回傳所有可透過 Anthropic 協議呼叫的模型,不僅限於 Claude 系列。

列出所有模型

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

請求範例

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

回應格式

{ "data": [ { "type": "model", "id": "anthropic/claude-haiku-4.5", "display_name": "Anthropic: Claude Haiku 4.5", "created_at": "2026-01-21T16:09:13Z", "owned_by": "bedrock", "canonical_slug": "claude-haiku-4-5-20251001", "description": "Anthropic's fastest and most cost-effective model...", "context_length": 200000, "architecture": { "modality": "text+image+file->text", "input_modalities": ["text", "image", "file"], "output_modalities": ["text"], "tokenizer": "claude", "instruct_type": null }, "pricing": { "prompt": "0.000001", "completion": "0.000005", "input_cache_read": "0.0000001", "input_cache_write_5m": "0.00000125", "input_cache_write_1h": "0.000002" }, "top_provider": { "context_length": 200000, "max_completion_tokens": 64000, "is_moderated": false }, "supported_parameters": [ "temperature", "top_p", "max_tokens", "stop", "tools", "tool_choice", "response_format" ], "expiration_date": null } ] }

與 OpenAI 協議的欄位差異

欄位OpenAI 協議Anthropic 協議
類型標識"object": "model""type": "model"
名稱namedisplay_name
建立時間created(Unix 時間戳)created_at(ISO 8601)

按供應商過濾模型

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

路徑參數

參數類型說明
providerstring供應商標識,如 anthropicopenaigoogle

請求範例

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

回應格式

回傳格式與列出所有模型一致,data 陣列僅包含指定供應商的模型。

取得模型詳情

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

路徑參數

參數類型說明
providerstring供應商標識,如 anthropic
model_idstring模型名稱,如 claude-sonnet-4.5

請求範例

Terminal
curl https://api.ofox.ai/anthropic/v1/models/anthropic/claude-sonnet-4.5

回應格式

回傳單個 Model 物件,結構與列表介面中的物件一致。

Last updated on