Skip to Content
開發文件模型目錄

模型目錄

OfoxAI 提供主流大模型的統一存取。你可以在 OfoxAI 模型目錄  瀏覽所有可用模型,也可以透過 Models API 以程式化方式取得完整模型資訊。

模型命名規範

所有模型遵循 provider/model-name 格式:

anthropic/claude-sonnet-4.5 google/gemini-3-flash-preview moonshotai/kimi-k2.5

Models API 標準

OfoxAI 的 Models API 遵循 OpenRouter 標準,以 JSON 格式回傳每個模型的完整元資料。

API 回應結構

根回應物件

{ "object": "list", "data": [ /* Model 物件陣列 */ ] }

Model 物件

每個模型包含以下標準化欄位:

欄位類型說明
idstringAPI 請求中使用的模型識別碼,如 "anthropic/claude-sonnet-4.5"
canonical_slugstring模型的永久標識符,不會變更
namestring模型的顯示名稱
creatednumber模型添加時間(Unix 時間戳)
descriptionstring模型能力和特性的詳細說明
context_lengthnumber最大上下文窗口大小(token 數)
architectureArchitecture模型技術架構資訊
pricingPricing模型定價資訊
top_providerTopProvider主要供應商設定
supported_parametersstring[]支援的 API 參數列表

Architecture 物件

描述模型的輸入/輸出模態和分詞器資訊:

{ "modality": "text+image+file->text", "input_modalities": ["text", "image", "file"], "output_modalities": ["text"], "tokenizer": "claude", "instruct_type": null }
欄位說明
modality輸入輸出模態的簡寫,如 text+image->text
input_modalities支援的輸入類型:textimageaudiofile
output_modalities支援的輸出類型:text
tokenizer分詞器類型
instruct_type指令格式類型(部分模型為 null

Pricing 物件

所有價格以 美元/token 為單位。值為 "0" 表示免費。

{ "prompt": "0.000001", "completion": "0.000005", "input_cache_read": "0.0000001", "input_cache_write_5m": "0.00000125", "input_cache_write_1h": "0.000002" }
欄位說明
prompt輸入 token 單價
completion輸出 token 單價
input_cache_read快取讀取 token 單價
input_cache_write_5m5 分鐘快取寫入 token 單價
input_cache_write_1h1 小時快取寫入 token 單價

不同模型的分詞方式不同,即使輸入和輸出相同,token 數量(和費用)也會有所差異。請使用回應中的 usage 欄位取得實際 token 消耗。

TopProvider 物件

{ "context_length": 200000, "max_completion_tokens": 8192, "is_moderated": false }
欄位說明
context_length供應商級別的上下文限制
max_completion_tokens單次回應最大 token 數
is_moderated是否啟用內容審核

Supported Parameters

supported_parameters 陣列標識了該模型支援的 OpenAI 相容參數:

參數說明
temperature取樣溫度控制
top_p核取樣參數
max_tokens最大回應長度
stop自定義停止序列
tools函式呼叫 / Tool Use
tool_choice工具選擇策略
response_format輸出格式規範(JSON Mode)
reasoning深度推理模式

取得模型列表

Models API 是公開介面,無需 API Key 即可呼叫。

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

查看完整的即時模型列表和定價,請造訪 OfoxAI 模型目錄 。 API 端點詳情請參閱 Models API 參考

Last updated on