Unify API
One MCP server for your agent.Một MCP server cho agent của bạn.给你的 agent 一个 MCP 服务器。
Add one MCP server URL to your agent to browse models, manage keys and check credits from inside the tool.Thêm một URL MCP server vào agent để xem model, quản lý key và kiểm tra credit ngay trong công cụ.在 agent 中添加一个 MCP 服务器 URL,即可在工具内浏览模型、管理 key、查看额度。
{removed: "mcpServers": {}added: "mcpServers": {added: "anyrouter": {added: "url": "https://anyrouter.dev/api/v1/mcp"added: }added: }}What came backKết quả trả về返回了什么
The cURL tab above, run on prod on 2026-10-31 with a Go key. Only the fields shown are kept, and long values are cut with "…".Tab cURL ở trên, chạy trên prod ngày 2026-10-31 với key gói Go. Chỉ giữ các field hiển thị, giá trị dài được cắt bằng "…".上面的 cURL 标签页,于 2026-10-31 在生产环境用 Go 套餐 key 运行。只保留显示的字段,过长的值用 "…" 截断。
HTTP 200
mcp-protocol-version: 2026-07-28
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
"list_models",
"recommend_model",
"list_okf_concepts",
"get_okf_concept",
"publish_artifact",
"list_artifacts",
"get_artifact",
"delete_artifact",
"set_artifact_visibility",
"get_system_status"
]
}
}- mcp-protocol-version
- The MCP protocol version the server speaks.Phiên bản giao thức MCP mà server dùng.服务器使用的 MCP 协议版本。
What worksHỗ trợ已支持
- OAuth sign-in on first tool callĐăng nhập OAuth ở lần gọi tool đầu tiên首次调用工具时 OAuth 登录
- Model tools on any key; account tools (get_credits, create_key) after OAuth sign-inTool model với mọi key; tool tài khoản (get_credits, create_key) sau khi đăng nhập OAuth任何 key 都可用模型工具;OAuth 登录后可用账户工具(get_credits、create_key)
Decisions modelsModel DecisionsDecisions 模型
Not a chat. Send a situation and a question with fixed choices, and get a probability for each choice back. Decisions are free on Go and up, with a 5-request trial on Free.Không phải chat. Gửi một tình huống và câu hỏi có các lựa chọn cố định, nhận lại xác suất cho từng lựa chọn. Decisions miễn phí từ gói Go trở lên, gói Free có 5 request dùng thử.不是聊天。发送一个情境和带固定选项的问题,返回每个选项的概率。Decisions 在 Go 及以上套餐免费,Free 套餐可试用 5 次请求。
curl https://anyrouter.dev/api/v1/decisions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "hal-x/thx-01", "state": "My card was charged twice",
"questions": {"team": {"type": "choice", "criteria": {"billing": "Payments", "tech": "API problems"}}}}'
# {"answers": {"team": {"type": "choice", "choice": "billing", "probabilities": {"billing": 0.97, "tech": 0.03}}}, "model": "hal-x/thx-01", "status": "completed"}