Brave Search API adds x402 payments for autonomous agents
Brave announced that its Search API now supports pay-as-you-go requests through the open x402 protocol, allowing autonomous agents to settle each search in USDC on Base instead of using conventional API-key authentication. Brave says an unpaid request returns an HTTP 402 response with the price and payment details; after the agent signs a payment and retries, verified searches return results with a Base transaction receipt. Brave lists LLM Context, web, news, image, video, and local searches at $0.005 per request, with Base gas fees covered for a limited time.
The update gives AI agents a metered way to obtain and pay for search grounding at request time without first creating a Brave account or selecting a plan.
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