Agent Router
登入註冊EN简
統一 API 文件

AI 聚合 API 參考

接入 Agent Router AI 聚合端點,瞭解模型發現、認證、路由行為與請求示例。

平台 API key

註冊後在控制台生成 sk-tp-* 金鑰。

註冊以取得 API key

AI 聚合 API 指南

當你希望 Agent Router AI 聚合在已設定上游之間選路,同時保留 OpenAI、Anthropic 或 Gemini 相容請求體時,從這裏開始。

OpenAI 相容 API

AI 聚合保持 OpenAI 相容的請求與回應格式,並由 Agent Router 按模型、價格和健康狀態選擇已設定的上游線路。

Base URLhttps://agent-router.net/aggregate/openai/v1
模型名使用 GET /aggregate/v1/models 傳回的模型 ID。未標價或不可用的 AI 聚合模型會在觸達上游前被拒絕。
查閱協議指南
Gemini 與 Veo API

AI 聚合使用同樣的 Google 相容路徑形態,但路由到已設定 AI 聚合線路。呼叫前請查閱 AI 聚合模型目錄。

Base URLhttps://agent-router.net/aggregate/google
模型名在 models/{model} 中使用已設定的 Google 相容 AI 聚合模型 ID,並先用 GET /aggregate/v1/models 確認已進入設定目錄。
查閱協議指南
Anthropic Messages API

AI 聚合為 Claude Code 等工具提供 Anthropic 相容 Messages,並路由到已設定上游線路。

Base URLhttps://agent-router.net/aggregate/anthropic
模型名使用 GET /aggregate/v1/models 傳回的模型 ID。未標價或不可用的 AI 聚合模型會在觸達上游前被拒絕。
查閱協議指南

接入面矩陣

接入面命名空間認證狀態
OpenAI/aggregate/openai/v1Authorization: Bearer需要已設定並標價的 AI 聚合線路
Anthropic/aggregate/anthropicAuthorization: Bearer需要已設定並標價的 AI 聚合線路
Gemini/aggregate/googleAuthorization: Bearer需要已設定並標價的 AI 聚合線路
TypeSafe/aggregate/typesafe/v1/systemoneAuthorization: Bearer需要已設定並標價的 AI 聚合線路
TypeSafe 決策 — POST /aggregate/typesafe/v1/systemone
{"model":"jev-1.13.0","state":"Evidence to assess","questions":{"verdict":{"type":"choice","instructions":"Choose based on the evidence","criteria":{"supported":"Supported","uncertain":"Insufficient evidence"}}}}
!

使用即時目錄中的 typesafe/decision 模型。入口保留原生 state/questions 與 answers,不使用 OpenAI 聊天或 Decisions 信封。僅支援文本,不接 assets、流式或實驗長上下文頭。按輸入 token 計費,輸出免費;受模型普通上下文限制(總量 64k,state 加單題 32k)。傳回合法選項不代表事實正確。

!

AI 聚合請求按平台計費,且必須有已設定模型價格。未知價格會在觸達上游前拒絕。