Brave Search API支持x402智能体支付
Brave宣布其Search API现已支持通过开放协议x402按需付费,开发者与自主智能体可使用Base网络上的USDC逐次结算搜索,而无需传统API密钥认证。Brave称,未付款请求会返回包含价格和支付详情的HTTP 402响应;智能体签署付款并重试后,经验证的搜索会返回结果及Base链上交易凭证。Brave公布LLM Context、网页、新闻、图片、视频和本地搜索的定价均为每次请求0.005美元,Base链gas费仅在限时内由其承担。
这项更新让AI智能体能够按次购买搜索上下文,无需预先创建Brave账户或选择套餐即可用于检索与答案依据补充。
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.
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.
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.
#Brave#Brave Search API#x402#USDC#Base#Purl Wallet#Stripe#LLM Context