我们测试过的最快的浏览器智能体 API

替你操作网页的 AI 智能体

发送任务和网址。真实的 Chrome 浏览器会点击、输入、填写表单、登录并返回答案,以及符合你结构的 JSON。

9.1s
任务端到端耗时中位数
$0.006
快速模式每步,无运行费
JSON
按你的结构输出
5.4×
比主流浏览器智能体快

一个请求,返回 JSON

请求
curl https://lovelyrouter.com/v1/browser/runs \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "goal": "Get the top 3 stories on the front page",
    "start_url": "https://news.ycombinator.com/",
    "output_schema": { "stories": [{ "title": "string", "url": "string", "points": "integer" }] }
  }'
结果(GET /v1/browser/runs/{id}?wait=30)
{
  "id": "brun_8f3c…",
  "status": "succeeded",
  "steps": 1,
  "answer": "The top 3 stories are …",
  "data": {
    "stories": [
      { "title": "Bitwarden Dual License Model", "url": "https://community.bitwarden.com/…", "points": 95 },
      { "title": "Talorys – A self-hosted personal AI agent…", "url": "https://github.com/rociiu/talorys", "points": 57 },
      { "title": "REA Reverse – Engineer Anything", "url": "https://rea.tools/", "points": 498 }
    ]
  },
  "charge_usd": 0.006
}

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

Use the Lovely Router browser agent API: a real browser that clicks, types, fills forms and logs in for a task, and returns an answer plus JSON in a schema I choose.

- Docs (read first): https://lovelyrouter.com/docs/browser-agent.md and https://lovelyrouter.com/docs/api/browser.md
- Start a run: POST https://lovelyrouter.com/v1/browser/runs with `{"goal": "...", "start_url": "https://...", "output_schema": {...}}`. Put every value the task needs in the goal. It returns 202 at once; poll the `poll` path (or stream `events`) until the run ends, then read `answer` and `data`.
- Billed per step (fast mode by default). Set `max_steps` to cap a run. For unattended runs send `"human": false`; by default the agent pauses before purchases, sending or deleting (`approve`).
- If you support MCP, you can instead connect the server https://lovelyrouter.com/mcp (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <describe the site and what the agent should do or extract>

为真实网站而生

实时观看

在智能体工作时,实时获取每个操作、每个完成的步骤和浏览器屏幕画面,可在控制台中查看,也可通过 API 获取。

结构化 JSON 输出

传入输出结构,即可在 data 中得到经过校验的 JSON,数据只取自智能体访问过的页面——包括真实的链接网址。

登录与双重验证

只写的保险库密钥,只会在你允许的网站上输入。TOTP 种子会转换为 6 位验证码;保存会话后,之后的运行可直接以登录状态开始。模型永远看不到密钥值。

人工介入

智能体可以向你提问、在购买前等待你批准,或在遇到验证码时把实时画面交给你处理。

文件上传

只需上传一次文件;智能体会为每个上传字段选出正确的文件(是简历,而不是报税单)。

提交前检查

点击提交前,智能体会逐项核对字段与任务,并修正错误或预填的值。

我们测试过的最快的浏览器智能体 API

快 5 倍,成本只是零头。 2026-10-10 用相同的六个公开任务、默认设置测试,计时从发起请求到拿到结果。对比对象是 Apify Store 上使用最多的按步计费浏览器智能体。

任务Lovely Router主流浏览器智能体快多少
Hacker News 头条3.7s · $0.00622.5s · $0.0386.1×
两次点击后的商品页7.3s · $0.01863.7s · $0.0958.7×
查询图书价格8.9s · $0.00938.2s · $0.0384.3×
维基百科搜索并阅读9.9s · $0.01879.5s · $0.1148.0×
登录后读取页面12.1s · $0.03352.7s · $0.1054.4×
三步保险报价表单(17 个字段)21.3s · $0.126199.6s · $0.9889.4×

价格

快速
$0.006
每个浏览器步骤
精准
$0.012
每个浏览器步骤

精准模式在拿不准时还会查看截图,并能运行只读代码读取数据。

  • ✓ 无运行费、无订阅
  • ✓ 已包含 AI 模型——无需 LLM 密钥
  • ✓ 包含结构化 JSON 输出
  • ✓ 只为实际执行的步数付费
  • 每步含 1 分钟;超出部分(例如等待你批准)按每分钟 $0.005 计费
  • 可选用我们的任意模型:token 按正常价格 × 1.2 计费
示例任务步骤快速精准
从页面读取一个值1–3$0.006–$0.018$0.012–$0.036
搜索网站并读取结果2–6$0.012–$0.036$0.024–$0.072
登录并读取账户数据4–8$0.024–$0.048$0.048–$0.096
填写并提交多步骤长表单15–25$0.090–$0.150$0.180–$0.300

API 参考

与 Lovely Router 其他服务共用 API 密钥和余额。基础 URL https://lovelyrouter.com

POST /v1/browser/runs开始运行(202),返回带 id 的运行对象。
GET /v1/browser/runs/{id}/events实时事件(Server-Sent Events):智能体正在做什么、每一步、运行状态,以及使用 ?screen=1 时的浏览器屏幕画面。
GET /v1/browser/runs/{id}?wait=30查询状态;长轮询最多 50 秒直到状态变化。加 &trace=1 返回步骤。
POST /v1/browser/runs/{id}/reply回答问题、批准或拒绝,或结束接管。
POST /v1/browser/runs/{id}/takeover在实时画面中接管浏览器。
POST /v1/browser/runs/{id}/stop停止运行;只为已执行的步数付费。
GET /v1/browser/runs/{id}/screenshot浏览器当前的屏幕画面,或最近保存的一张。
PUT /v1/browser/vault/{name}保存只写密钥:{"value", "kind": "password|username|text|totp", "origins"}。
PUT /v1/browser/files/{name}上传智能体可附加的文件(原始请求体,最大 10 MB)。
GET /v1/browser/profiles已保存的会话(Cookie + 本地存储)。

运行参数

goal要做什么,用平实的语言写明任务需要的每个值(必填)。
start_url首先打开的页面(必填)。
output_schemaJSON Schema,或简写如 {"title": "string", "items": [{"name": "string"}]}。结果在 data 中返回。不提供 schema 时,只有目标本身描述了数据格式,data 才会有值。
mode"fast"(默认,每步 $0.006)或 "accurate"(每步 $0.012):拿不准时还会查看页面截图,并能运行只读代码读取数据。在难搞的网站和控件上成功率更高。
max_steps步数上限 1–100(默认 50)。只为实际执行的步数付费。
approve提交前暂停等待你批准:"risky"(默认:购买、发送)、"submit"(所有表单)或 "none"。
human_timeout_minutes智能体等待你(回答、批准、验证码)的时长,1–1440 分钟(默认 30)。无人回复时运行以 timed_out 结束。
secrets智能体可输入的保险库密钥名称(PUT /v1/browser/vault/{name})。模型只能看到名称。
ephemeral_secrets仅本次运行使用、不会保存的密钥:{"name": {"value", "kind", "origins"}}。
files智能体可附加到上传字段的已上传文件名,或 "*"。
profile / save_profile从已保存的 Cookie 开始,或在运行结束时保存,之后的运行即可以登录状态开始。
allowed_domains浏览器可访问的主机名,如 ["example.com", "*.example.com"]。
webhook运行等待你操作或结束时通知的 HTTPS 地址(使用 x-lovely-signature 签名)。
stream / screenstream: true 时返回该运行的实时事件(Server-Sent Events),直到运行结束,而不是返回 202;screen: true 会增加浏览器屏幕画面。
model / max_model_usd可选,来自 GET /v1/models 的模型(如 claude-sonnet-5.5),用于智能体的思考、填写和数据提取。其 token 按该模型正常价格 × 1.2 在每步价格之外另计。max_model_usd 可设上限。

运行以 succeeded、failed、timed_out 或 stopped 结束,期间可能暂停为 waiting_for_human。结果包含 answer(文本)、data(JSON 或 null)、steps 和 charge_usd。

常见问题

用你自己的任务试试

在控制台运行,查看每一步,然后复制 API 调用。

获取密钥