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

API 協議與端點

對照 Agent Router 的 OpenAI、Anthropic 和 Gemini API 命名空間、認證方式及相容端點。

平台 API key

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

註冊以取得 API key

選擇 API 協議

每個協議頁獨立承載自己的示例和端點表。先進入 SDK 期望的協議形態,再使用平台選路的 AI 聚合。

OpenAI 相容 API

使用 OpenAI 風格客户端呼叫 Chat Completions、Responses、Embeddings 和圖片介面。

AI 聚合 APIhttps://agent-router.net/aggregate/openai/v1
開啟指南
Gemini 與 Veo API

使用 Google 原生 Gemini REST 形態呼叫文本、多模態、流式、token 統計和視頻 LRO 任務。

AI 聚合 APIhttps://agent-router.net/aggregate/google
開啟指南
Anthropic Messages API

使用 Claude Messages 格式,並端到端保留 anthropic-version。

AI 聚合 APIhttps://agent-router.net/aggregate/anthropic
開啟指南

接入面矩陣

接入面命名空間認證狀態
Aggregate/aggregate/openai/v1Authorization: Bearer需要已設定並標價的 AI 聚合線路
Aggregate/aggregate/anthropicAuthorization: Bearer需要已設定並標價的 AI 聚合線路
Aggregate/aggregate/googleAuthorization: Bearer需要已設定並標價的 AI 聚合線路
!

AI 聚合協議頁展示的是已設定路由的行為;實際可用性仍取決於當前賬户啓用的上游線路和賬户可見價格。