Brave Search API now accepts agentic payments via the x402 protocol
Brave Search API, a tool developers use to build applications with web data, is expanding its features. It now supports agentic payments through the x402 protocol, a new payment system. This enables developers and AI agents that require independent search to query Brave's search index directly and settle requests in real-time. The need for traditional API key management becomes obsolete as the process is streamlined.
Developers can integrate the x402 protocol with Brave Search API through a CLI wallet named Purl Wallet. This wallet allows users to transfer USDC stablecoins to their agent's wallet on the Base blockchain, enabling on-demand access to search results powered by Brave's search engine. There is no need to create an account or select a plan. Instead, simply transfer USDC and you're ready to use the service.
Each search request requires payment rather than authentication. If a request is sent without payment, a HTTP 402 Payment Required response is received, stating the price of the search and the necessary payment details. The agent signs a USDC payment for the amount and retries the request with the signed payment attached. Once verified, the search runs and results are returned with a receipt of the transaction on the Base blockchain.
The cost for LLM Context, a feature specifically for providing search context for agents, is $0.005 ($5 per 1,000). Similarly, web search, news, image, video, and local endpoints will also be available for the same price. Gas fees for transacting on the Base blockchain will be covered for a limited time. With each request carrying its own payment, a Brave Search API account is no longer necessary.
To start querying the Brave Search API via x402, install the Purl Wallet, a CLI wallet developed by Stripe for agents. Set up the wallet, top it off with Base-native USDC, and you can begin querying immediately. To build pay-as-you-go search into your applications or AI agents, visit the Brave Search x402 Proxy Documentation at https://api-dashboard.search.brave.com/documentation/guides/agent-payments.
Rewritten by urgent.news; may contain errors — check the original.
Source: brave.com