AgentRouter Guide for AI Agents

AgentRouter lets agents discover, pay, and execute APIs

Get started

770+

APIs

100+

Partners

AgentCash logo
MPP logo
StableBrowse logoStableBrowse
AgentPhone logoAgentPhone
AgentMail logoAgentMail
Booking logoBooking
Expedia logoExpedia
PredictLeads logoPredictLeads
AgentCash logo
MPP logo
StableBrowse logoStableBrowse
AgentPhone logoAgentPhone
AgentMail logoAgentMail
Booking logoBooking
Expedia logoExpedia
PredictLeads logoPredictLeads

$ I need to scrape a docs page and extract pricing tables. What are my options?

00:01
$

From the live web catalog I checked on April 9, 2026, the best fit is the web domain, split between web.scrape and web.extract.

00:03
•

Firecrawl 8 credits ($0.008), live now for both scrape and extract. Best fit when you want one provider to move from raw page capture to structured fields.

00:05
•

Diffbot 8 credits ($0.008), live now for scrape and extract. Strong fit when you care more about typed extraction than raw crawl breadth.

00:07
•

Tavily 8 credits ($0.008), live now for extract, crawl, and map. Useful when the task starts broad and then narrows into field extraction.

...
•

How it works

Give your agent a wallet. We handle APIs, routing, and payments.

1

Agent gets a wallet

Sign in to create a wallet and fund it for your agent.

Sign in

Continue with Google

Your Wallet

Available Balance

$120.50

Add Funds
2

Agent is routed to the best API

We recommend the best provider based on capability, price, and reliability.

Agent Request

e.g. Send Email

AgentRouter logo
Resend logo

Resend

Fast Send
$0.0012
SendGrid logo

SendGrid

Best Uptime
$0.0015
Inkbox logo

Inkbox

Best Price
$0
3

Agent executes. We handle payment.

We execute the API call and handle payment across all supported rails.

Execute API

e.g. Send Email

Payment Rails

x402MPPMCPTempo+ more

Done

One API to access all the models

Featured models

Token-price estimates · example uses 1K prompt + 500 generated tokens

Browse all models →
Model IDBest forPrompt / 1MGenerated / 1MExample
openai/gpt-5.6-solGeneral default2,000 credits ($2)10,000 credits ($10)~7 credits ($0.007)
anthropic/claude-sonnet-5Writing + reasoning2,000 credits ($2)10,000 credits ($10)~7 credits ($0.007)
google/gemini-3.8-flashFast, long context750 credits ($0.75)3,750 credits ($3.75)~2.625 credits ($0.002625)
openai/gpt-5.3-codexSoftware engineering1,750 credits ($1.75)14,000 credits ($14)~8.75 credits ($0.00875)
deepseek/deepseek-v4.1-flashLow-cost reasoning140 credits ($0.14)420 credits ($0.42)~0.35 credits ($0.00035)
anthropic/claude-opus-5.5Premium reasoning4,000 credits ($4)20,000 credits ($20)~14 credits ($0.014)

Catalog prices help you compare models. The live response returns the authoritative amount in creditsCharged.

How we call them

Codelist-models.ts
// npm install @agentrouter/agentrouterimport { AgentRouterClient } from "@agentrouter/agentrouter"; const client = new AgentRouterClient({  apiKey: process.env.AGENTIC_API_KEY,}); const catalog = await client.models.catalog.list(); console.log(catalog.modelCount);console.log(catalog.models[0]);
Sample response
{  modelCount: 458,  pricedModelCount: 452,  creditsCharged: 0,  models: [{    id: "openai/gpt-5.6-sol",    contextLength: 1050000,    agentRouterPricing: {      inputCreditsPerMillionTokens: 2000,      outputCreditsPerMillionTokens: 10000    }  }, "…"]}

Other Use Cases

From sending emails, make a phone call to search a hotel, you could start delegate real tasks for your agent now.

Sending emails

Resend logo

Resend

Live

$0.01 / use
AgentMail logo

AgentMail

Live

$0.013 / use
SendGrid logo

SendGrid

Live

$0.012 / use

People Search

Apollo logo

Apollo

Live

$0.005 / use
Clado logo

Clado

Live

$0.01 / use
StableEnrich logo

StableEnrich

Live

$0.02 / use

Scrape

Firecrawl logo

Firecrawl

Live

$0.008 / use
Oxylabs logo

Oxylabs

Live

$0.008 / use
Diffbot logo

Diffbot

Live

$0.008 / use

Web Search

Brave logo

Brave

Live

$0.008 / use
Exa logo

Exa

Live

$0.008 / use
Perplexity logo

Perplexity

Live

$0.008 / use

Travel

Google Flights logo

Google Flights

Live

$0.02 / use
Expedia logo

Expedia

Pending

$0.005 / use
Booking logo

Booking

Pending

$0.005 / use

Browser

Browserbase logo

Browserbase

Live

$0.008 / use
ScreenshotOne logo

ScreenshotOne

Live

$0.008 / use
Firecrawl logo

Firecrawl

Live

$0.008 / use

补充更新:AgentRouter 接入、路由选择与首次调用

更新于 2026-10-31 · agentrouter.cfd

简答:AgentRouter 可把多个付费 API 能力放到一套发现、推荐、执行和用量查询流程中。首次接入时,先配置 API Key 与 Base URL,再查询 domain 和 capability,随后调用 recommend 检查可执行路由,最后 execute;价格和路由状态应以当前响应为准。本文为第三方整理,核验日期为 2026-10-31。

定义:AgentRouter 是一个面向 AI Agent 的 capability-first API 路由层,用于发现能力、选择路由、执行付费 API,并查询钱包与用量。

先看最短接入路径:API Key → Discover → Recommend → Execute

如果你只是想判断 AgentRouter 是否适合接入,先按下面顺序做一次最小核验。公开文档把默认流程拆成认证、选择接入方式、发现目录、推荐路由、执行能力、检查钱包与用量六步。Quickstart 文档列出了对应的环境变量、端点和请求示例。

步骤要做什么成功判定
1. 配置设置 AGENTIC_API_BASE_URL 与 AGENTIC_API_KEY请求使用 Authorization: Bearer
2. 发现调用 /domains、能力列表和 contract得到可用 domain、capability 或字段说明
3. 推荐调用 /recommend检查 recommendedRouteKey、canExecuteNow 和阻塞条件
4. 执行调用对应的 /execute响应中的 success、业务状态和扣费字段符合预期
5. 对账查询 /wallet 与 /usage能看到余额或最近用量记录

最小环境变量示例:

  • export AGENTIC_API_BASE_URL=https://api.agentrouter.to/api/agentic-api
  • export AGENTIC_API_KEY=aak_你的密钥

API Reference 明确列出了 domain、capability、contract、recommend、execute、wallet 和 usage 等核心端点,并说明认证请求使用 Bearer Token。API Reference

domain、capability、route、provider 分别是什么

可以把 AgentRouter 的对象关系理解为:domain 是问题领域,capability 是具体动作,route 是一次可执行的供应路径,provider 是路线背后的服务提供方。

  • domain:例如 email、search、web 或 models,用于先缩小问题范围。
  • capability:例如某个 domain 下的发送、搜索、抓取或模型调用动作。
  • route:同一个 capability 可能对应多个执行路线,路线可能有不同的价格、运行状态或前置要求。
  • provider:推荐结果中的具体供应方名称;不要仅凭 provider 名称判断当前一定可执行,应同时检查 route 和响应状态。

官方文档建议先调用目录接口,再在需要精确字段时读取 capability 的 /contract,然后根据是否需要系统选路决定调用 /recommend 或 /execute。API Reference

可复制的首次请求:以 email.send 为例

下面示例使用公开 Quickstart 中的 email.send 能力。它的价值不在于照抄收件人,而在于展示完整的“发现—推荐—执行”顺序。实际项目应先读取对应 capability 的 contract,确认必填字段和业务限制。

  1. 查看 domain:

    curl "$AGENTIC_API_BASE_URL/domains"

  2. 查看能力列表:

    curl "$AGENTIC_API_BASE_URL/domains/email/capabilities"

  3. 读取发送能力的字段约定:

    curl "$AGENTIC_API_BASE_URL/domains/email/capabilities/send/contract"

  4. 先推荐路线:

    curl -X POST "$AGENTIC_API_BASE_URL/domains/email/capabilities/send/recommend" -H "Authorization: Bearer $AGENTIC_API_KEY" -H "Content-Type: application/json" -d '{"agentName":"docs_quickstart","optimizationPreferences":["cost","quality"],"tracking":true}'

  5. 检查推荐结果中的 canExecuteNow。如果为 false,先阅读 blockingRequirements 和 nextActions,不要直接假设执行会成功。

  6. 确认路线后执行:

    curl -X POST "$AGENTIC_API_BASE_URL/domains/email/capabilities/send/execute" -H "Authorization: Bearer $AGENTIC_API_KEY" -H "Content-Type: application/json" -d '{"to":"[email protected]","subject":"Test","html":"<p>Test</p>","provider":"resend","allowFallback":true}'

文档示例中的推荐响应包含 recommendedProvider、recommendedRouteKey、canExecuteNow、blockingRequirements 和 candidates;执行响应示例包含业务状态、路线和 creditsCharged。这些字段应按当前接口响应处理,不应写死为永久不变的结构。Quickstart 文档 Recommendation 文档

为什么通常要先 recommend,再 execute

recommend 是选路步骤,不是最终的付费执行。官方说明显示,它可以根据成本、速度、可靠性、质量、候选路线和当前运行状态返回建议;当某条路线需要先获取资源、准备钱包或完成其他流程时,还可能返回阻塞条件和下一步操作。Recommendation 文档

因此,应用代码至少应做三项检查:

  • 推荐是否成功,以及是否返回了 recommendedRouteKey。
  • canExecuteNow 是否为 true。
  • blockingRequirements、nextActions 是否为空或已经完成。

只有在路由可执行、请求体符合 contract、测试数据已经脱敏时,再进入 execute。若你明确要求固定 provider,也应核对该 provider 对应的 route 是否仍在当前目录中可用。

价格、credits 与动态状态怎么判断

公开 Quickstart 将 AgentRouter 的账单单位写为 credits,并给出了“1000 credits = 1 美元”的说明;同一页面还展示了钱包余额、usage 查询和执行响应中的 creditsCharged。由于目录价格、候选路线和路由状态可能变化,页面上的示例价格只能作为文档示例,实际扣费应以当前执行响应为准。Quickstart 文档

文档还使用了 live、mapped、pending、gated 等状态描述路线。它们不应被理解为永久承诺:在实际调用前,应重新读取目录、contract 或 recommend 响应,并以 canExecuteNow、阻塞要求和最终业务响应判断是否适合继续。

完成测试后,可以查询:

  • curl "$AGENTIC_API_BASE_URL/wallet" -H "Authorization: Bearer $AGENTIC_API_KEY"
  • curl "$AGENTIC_API_BASE_URL/usage?limit=20" -H "Authorization: Bearer $AGENTIC_API_KEY"

接入前的安全与失败分流清单

本站是第三方整理页面,不代表官方身份;本文核验到的 API 地址、认证方式和字段均来自公开开发文档,核验日期为 2026-10-31。使用时不要把 API Key 写进前端、公开仓库、截图或日志。

  • 401:先确认 Key 是否为空、是否包含多余空格,以及请求是否真的带有 Authorization: Bearer。
  • 403:检查账号、能力权限、钱包或路线前置条件,不要把它简单归因于 Key 错误。
  • 404:打印最终请求 URL,确认 Base URL、domain、capability 和路径拼接没有重复或遗漏。
  • 429:降低并发并查看响应体;如果是某条 provider route 的限制,不要直接泛化为所有路线都不可用。
  • 超时或非 JSON:保留 HTTP 状态码、响应头和脱敏后的响应体,先判断是网关层、上游路线还是本地网络问题。
  • 执行前:先用小范围测试数据和低风险能力验证完整链路,再把请求接入生产任务。

如果只想测试目录访问,可先执行不涉及业务扣费的 /domains 请求;如果要测试付费能力,则应先确认钱包、扣费字段和回滚或重试策略。

补充说明:如何理解 AgentRouter 与本页的关系

“AgentRouter”可能出现在不同域名、文档页、SDK 包或代码仓库中。本文不根据名称相同就推断它们属于同一主体;本页仅根据截至 2026-10-31 核对到的公开开发文档整理 API 接入思路。涉及登录入口、API Key、模型目录、价格、支付或路线状态时,应以对应公开文档和实际接口响应为准。

常见问题

AgentRouter 是模型聚合器,还是通用 API Router?

从公开文档的能力模型看,它不仅覆盖模型调用,也把 email、search、web、enrichment、travel 等能力按 domain 和 capability 组织起来。因此更准确的理解是面向 AI Agent 的 API 路由层;具体能力和可执行路线仍要以当前目录与接口响应为准。

一定要先调用 recommend 吗?

不是绝对强制。若应用已经明确固定 provider 和 route,可以直接按 contract 调用 execute;但官方文档建议在 provider 未固定、成本或可靠性重要,或能力存在前置流程时先 recommend。

页面上的价格可以直接当作最终价格吗?

不建议。公开页面和文档中的价格属于目录或示例信息,执行时应以实时响应中的 creditsCharged、当前钱包和 usage 记录为准。

如何判断一次请求真的成功?

不要只看 HTTP 200。至少同时检查响应是否为 JSON、success 或业务状态、route/provider、扣费字段以及业务结果字段;如果返回 canExecuteNow 为 false 或存在 blockingRequirements,应先完成前置步骤。

本页能否确认 agentrouter.cfd 与其他 AgentRouter 域名的归属关系?

不能。本文不根据名称相同推断域名、SDK、仓库或服务属于同一主体;涉及官方入口、Key 和接口时,应以已核对的公开文档及实际响应为准。

相关阅读

参考资料

  1. AgentRouter Welcome:能力模型与基础流程(docs.agentrouter.to)
  2. AgentRouter Quickstart:API Key、Base URL、推荐、执行与用量(docs.agentrouter.to)

Payment made easy.

One wallet. No need to worry about different payment rails.

Unified walletagentrouter wallet
x402Settlement rail
MPPSettlement rail
TempoSettlement rail

Quick Start

|||

Sign in with Google to claim 100 credits ($0.10) and generate the setup block you will paste next to skill.md in your agent.

Works with

What AgentRouter Is and Who It Suits

AgentRouter is an API routing service for AI agents. Its catalog lets agents discover capabilities such as email delivery, lead enrichment, social search, hotel booking, web extraction, document parsing, media generation, and travel search. The service describes a workflow in which an agent uses a wallet, receives provider recommendations, and executes an API request while payment is handled across supported rails. It may suit developers and teams building agents that need to compare or access several API providers through one workflow.

How to Start and Choose an API

Begin by reviewing the available documentation and signing in to create a wallet for the agent. Add funds as needed, then describe the capability or task you want to perform, such as sending email or extracting information from a webpage. AgentRouter can present provider options based on capability, price, and reliability. Before connecting a client or integration, compare the listed providers, confirm the supported payment rail and access method, and test the selected route with a limited request.

What to Check Before Using It

Catalog entries, provider availability, routing recommendations, payment methods, and model information can change, so verify current details in the service’s announcements and documentation. Protect sign-in details, wallet credentials, balances, and any API keys, and give agents only the access they need. Review the data handled by each provider, especially when processing documents, leads, or web content. Also check whether your planned use complies with applicable laws, provider terms, and internal security policies.

FAQ

What does AgentRouter do?

AgentRouter helps AI agents discover APIs, compare provider options, route requests, and execute calls. Its described workflow uses an agent wallet and handles payment across supported rails, while the available capabilities and providers should be checked in the current catalog.

How does AgentRouter recommend a provider?

The service says it recommends providers according to capability, price, and reliability. Treat these as routing criteria rather than a guarantee for every task, and review the current provider details, availability, and terms before sending production requests.

Does using AgentRouter require a wallet?

The documented workflow starts with signing in to create and fund a wallet for the agent. Whether a particular integration or payment rail has additional requirements depends on the current documentation, so confirm the applicable setup details before use.

This page is a third-party introduction to AgentRouter and is not affiliated with AgentRouter; specific details should be confirmed through AgentRouter’s announcements.

AgentRouter 是什么?API Router 接入与首次调用指南