Brave Search API adds pay-per-request payments for AI agents via x402
Product updatePublished: Source: Hacker News (100+ points)
TL;DR:Brave Search API now supports pay-as-you-go payments through the open x402 protocol, allowing developers and autonomous AI agents to use search without API keys or an account.

Brave Search API now supports pay-as-you-go payments through the open x402 protocol, allowing developers and autonomous AI agents to use search without API keys or an account. Each request returns an HTTP 402 response with its price and payment details; the agent pays in USDC on Base and retries, then receives search results and a transaction receipt. LLM Context and web, news, image, video, and local search each cost $0.005 per request ($5 per 1,000); Base gas fees are covered for a limited time.
Key points
- No API key or Brave Search API account is required; each search request is paid individually.
- Payment uses USDC on Base, with Brave operating its own facilitator.
- LLM Context and the listed search endpoints cost $0.005 per request ($5 per 1,000).
- Purl Wallet, a Stripe-developed command-line wallet, is suggested for agent use.
Why it matters
Teams building search-enabled agents can pay only for the queries they make, avoiding API-key provisioning and a subscription plan. The per-request price is explicit, though payments require a funded USDC wallet on Base.
Companies and models mentioned
- Brave Search API
- Brave
- x402
- Base
- USDC
- Purl Wallet
- Stripe