--- published: true layout: post title: 'When Payment Is Your API Key' image: https://kinlane-images.s3.amazonaws.com/apievangelist/api-evangelist-images/when-payment-is-your-api-key.png date: 2026-11-27 16:00:00 +0000 author: Kin Lane tags: - x402 - Payments - Agentic Commerce - Authentication - Agents - APIs.io --- For as long as I have been doing this, the first thing you did with an API was sign up. Create an account, pick a plan, get a key, put the key in a header. Every onboarding conversation I have had for fifteen years has been about how to make that sequence less painful. Brave just took the whole sequence out. As we [wrote up on APIs.io this week](https://apis.io/2026/11/25/brave-search-api-x402-agentic-payments/), Brave [added x402 agentic payments to the Brave Search API](https://brave.com/blog/search-api-agentic-payments/). Endpoints behind x402 "require payment on every request rather than authentication." In Brave's own words: "Since each request carries its own payment, a Brave Search API account is no longer needed to use the service." ## How it works An agent calls the endpoint with no key. It gets back an HTTP 402 Payment Required, and the response states the price. The agent signs a USDC payment on Base, retries the request with the payment attached, and gets search results back along with a transaction receipt. Brave runs its own facilitator. The prices are Brave's existing published rates: $0.005 a request, or $5 per 1,000, for LLM Context, the endpoint built for grounding agents, and the same for web, news, image, video and local search. Base gas fees are covered "for a limited time," so the per-call cost after that window isn't stated yet. ## Why this matters Status code 402 has been sitting in the HTTP spec, reserved for future use, for my entire career. What Brave has done is make it the onboarding. Signup, plan selection and key management collapse into one response code and one signed payment. For an agent, that is the difference between needing a human to go create an account and being able to just do the work and pay for it. It also changes what the most important part of the API is. When the 402 response *is* the price list, the error response stops being an afterthought. It is the contract. What does the 402 body look like? What currency, what network, what amount, which facilitator? What happens on a failed payment, an underpayment, an expired quote? Those answers are what an agent needs to reason about before it spends money. ## What the catalog sees This is where I'd like to see the next step. Brave's record on APIs.io is well mapped across web, news, image, video and local search, plus the Brave Search MCP server, 27 API pages in all. But the [agentic access profile](https://apis.io/agentic-access/brave-browser/brave-browser-agentic-access/) counts 9 operations, and the x402 surface isn't in any contract we hold yet. So on the Kin Score's Agent Readiness layer, the two dimensions this launch should light up, agentic commerce and error semantics, are still dark. That isn't a knock on the launch. It is the normal lag between shipping a thing and describing it. Brave has made payment the credential. The next move is describing that payment in the OpenAPI: a `402` response with a schema for the price, the payment requirements and the receipt, so any agent, SDK generator or catalog can understand it without reading a blog post. ## The bigger pattern When I [counted agent cards in September](https://apievangelist.com/2026/09/21/97-agent-cards-say-x402-eight-of-them-answer-a-402/), 97 of 427 said they supported x402 and only eight actually answered with a 402. A search API with Brave's reach answering with a real 402 is a different kind of signal. Put it next to Google Workspace [requiring agents to use MCP and putting a price on scale](https://apievangelist.com/2026/11/26/google-workspace-now-requires-agents-to-use-mcp-and-puts-a-price-on-scale/), and you can see two very different answers to the same question: how does a provider let agents in and get paid for it? One draws a governed lane with tiers and terms. The other says just pay per call and you're in. I expect we'll see both, and plenty in between. Either way, plans, pricing and payment requirements are becoming part of the API contract, and the providers who publish them as machine readable data will be the ones agents can actually do business with.