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

API 文件與快速開始

取得 Agent Router API Key,使用 OpenAI、Anthropic 或 Gemini 相容請求格式接入應用。

平台 API key

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

註冊以取得 API key

一把 Key 接入 AI 聚合

先選擇 SDK 需要的協議形態,再呼叫平台路由的 AI 聚合 API,請求體不需要改寫。

AI 聚合 API

透過已設定的上游線路提供 OpenAI、Anthropic 和 Google 相容路由,保留平台計費與價格保護。

cURL
curl https://agent-router.net/aggregate/openai/v1/chat/completions \
  -H "Authorization: Bearer sk-tp-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"<configured-model-id>","messages":[{"role":"user","content":"ping"}]}'

接入面矩陣

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