跳到主内容
@wquguru
精选86Hacker News Best(web_list)产品发布/更新

Brave Search API支持x402协议实现AI代理即时支付

Brave Search API now accepts agentic payments via the x402 protocol

原文
发到 X
推荐理由

Agent开发者的新基建,x402让AI代理能直接付USDC调搜索,省去了繁琐的API Key管理,值得关注这种新型支付范式。

The Brave Search API, our developer tool for building applications with data from the Web, is adding support for instant, pay-as-you-go, agentic payments enabled by the open x402 payment protocol. Developers and autonomous AI agents that specifically require agentic search can now programmatically query Brave’s independent search index, ground agent responses, and settle requests in real time, which eliminates the need for traditional API key management.

Brave Search API 是我们用于利用网络数据构建应用程序的开发者工具,正在增加对即时、按需付费的智能体支付的支持,该功能由开放的 x402 支付协议提供支持。专门需要智能体搜索功能的开发者和自主 AI 智能体现在可以以编程方式查询 Brave 的独立搜索索引,为智能体响应提供依据(grounding),并实时结算请求,从而消除了对传统 API 密钥管理的需求。

Integrating x402 with the Brave Search API makes it easier for an agentic harness to leverage Brave Search API via a CLI wallet, as Brave runs its own facilitator accepting USDC on the Base blockchain, with acceptance on other networks and with other stablecoins incoming soon. This allows a Brave Search API user the ability to pay for LLM Context (agentic grounding) or general web search on-demand, without first creating an account and selecting a plan. Instead, simply transfer USDC stablecoin to your agent’s wallet via the Base network and it’s ready to access the same high-quality search results powered by Brave’s search engine.

将 x402 与 Brave Search API 集成,使得智能体框架能够通过 CLI 钱包更轻松地利用 Brave Search API,因为 Brave 运行自己的中介服务,接受 Base 区块链上的 USDC,并且很快将支持其他网络和稳定币。这允许 Brave Search API 用户按需支付 LLM Context(智能体依据)或通用网页搜索的费用,而无需先创建账户并选择套餐。相反,只需通过 Base 网络将 USDC 稳定币转账到您的智能体钱包,即可访问由 Brave 搜索引擎提供的高质量搜索结果。

How does it work?

它是如何工作的?

Brave Search API endpoints behind x402 require payment on every request rather than authentication. A request sent without payment receives an HTTP 402 Payment Required response that states the price of that search and the payment details needed to pay it. The agent signs a USDC payment for that amount and retries the request with the signed payment attached. Once the payment is verified, the search runs and results are returned with a receipt of the transaction that occurred on the Base blockchain.

x402 背后的 Brave Search API 端点要求在每次请求时进行付款,而不是身份验证。未附带付款的请求会收到 HTTP 402 Payment Required(需要付款)响应,其中说明该搜索的价格以及付款所需的详细信息。智能体为该金额签署 USDC 付款,并附上已签署的付款重试请求。一旦付款得到验证,搜索便会运行,并返回结果以及发生在 Base 区块链上的交易收据。

Get started today

立即开始使用

Pricing follows Brave’s published API rates: LLM Context, an API designed specifically for providing search context for agents, will cost $0.005 ($5 per 1,000). Additionally, web (search for humans), news, image, video, and local endpoints will also be available for $0.005 ($5 per 1,000). Gas fees for transacting on the Base blockchain will be covered for a limited time. Since each request carries its own payment, a Brave Search API account is no longer needed to use the service.

定价遵循 Brave 公布的 API 费率:LLM Context 是专为向智能体提供搜索上下文的 API,费用为 0.005 美元(每 1,000 次 5 美元)。此外,网页(面向人类的搜索)、新闻、图片、视频和本地端点也将可用,费用同样为 0.005 美元(每 1,000 次 5 美元)。在 Base 区块链上进行交易的 Gas 费用将在有限时间内免费。由于每个请求都自带付款,因此不再需要 Brave Search API 账户即可使用该服务。

The easiest path to query via x402 is to install Purl Wallet, a Stripe-developed CLI wallet for your agent. Set up your wallet, top it off using Base-native USDC, and start querying today.

通过 x402 进行查询的最简单方法是安装 Purl Wallet,这是一个由 Stripe 开发的用于您智能体的 CLI 钱包。设置您的钱包,使用 Base 原生 USDC 充值,然后今天就开始查询。

Ready to build pay-as-you-go search into your apps or AI agents? Check out our Brave Search x402 Proxy Documentation and explore: https://api-dashboard.search.brave.com/documentation/guides/agent-payments

准备好将按量付费搜索集成到您的应用或 AI 代理中了吗?查看我们的 Brave Search x402 Proxy 文档并探索:https://api-dashboard.search.brave.com/documentation/guides/agent-payments

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件