DEV Community

Cover image for Is the Brave Search API free, and can I use it with an AI agent?
Ricardo Batista for cloro

Posted on Edited on

Is the Brave Search API free, and can I use it with an AI agent?

The Brave Search API has no free plan today, but each plan includes $5 of credit a month, which covers about 1,000 Search requests. You can use it with an AI agent: the rule against "AI inference" belonged to an older free plan, and Brave's current terms, last updated on September 1, 2026, forbid storing results and using them to train or benchmark AI models.

  • Price: Search is $5 per 1,000 requests at up to 50 queries a second. Brave asks for a card to prevent abuse and charges only for credits you buy. Its launch post says the $5 credit requires attribution on your site.
  • AI agents: Brave sells the Search plan with an LLM Context endpoint "for machines" and says the API is "available on any agent harness". Sending results to a model at query time is the intended use.
  • The limits that still apply: no storage of results beyond what the app needs to run, no training, fine-tuning or benchmarking of AI models on them, and no resale. An agent that saves results into long-term memory or a vector store needs a custom plan with storage rights.

What does the Brave Search API cost now?

Plan Price Rate limit Covers
Search $5 per 1,000 requests 50 queries a second Web, news, images, videos and LLM Context
Answers $4 per 1,000 requests, plus $5 per million input and output tokens 2 queries a second Answers that Brave writes, with citations
Enterprise On request On request Zero data retention, custom agreements

Source: Brave Search API, read on November 16, 2026.

Brave's help page is direct about it: "We do not offer a standalone free plan." Each plan carries $5 of free credit a month instead. That is why the Brave page also says "up to $20 in free calls every month": the help page explains it as $5 on each of four plans. For one agent on the Search plan, the credit is about 1,000 searches. An agent that runs 5 searches per task gets about 200 tasks a month before the card is charged.

Two points on the credit are not consistent across Brave's own pages. Brave's launch post for these plans (February 12, 2026) says that to receive the credit, you attribute the Brave Search API on your project's website or about page. The current terms of service describe attribution as something the customer "may provide", and the credit terms say credits expire one year after they are issued. Check the condition in your dashboard before you plan around the credit.

Where did the "no AI inference" rule come from?

The rule is real, and it is old. Brave sold free plans before February 2026, and the terms of its "Data for Search" plan said: "These Terms of Use prohibit using responses for AI inference." An Ask HN thread quoted that line and asked whether an OpenClaw agent breaks it. The replies pointed to Brave's AI plans.

Date Change Source
Before February 2026 Free "Data for Search" plan; its terms prohibited "using responses for AI inference" Ask HN thread, Implicator (secondary)
February 12, 2026 New public plans: Search, Answers, Spellcheck, Autocomplete, each with $5 of monthly credit Brave launch post
September 1, 2026 Current terms of service and credit terms Terms of service

The current terms contain no clause about AI inference. The word "inference" does not appear in them. The only AI clause is about models, and it is quoted in the next section. Many guides and forum answers still quote the old rule, so check the date of any source that says Brave forbids AI use.

What can't you do with Brave results in an agent?

Section 3(b) of the current terms lists what the customer must not do. Four items matter for an agent:

Clause Text What it means for an agent
3(b)(i) "store, cache, or create a database of Search Results, in whole or in part, other than transient storage required for operation of Customer Applications" Keep results in the context of the task. A shared cache, a vector store or long-term memory built from results is storage.
3(b)(xiii) "use the Search Results to create, evaluate, train, re-train, fine-tune, benchmark or otherwise improve artificial intelligence models or services" Do not use the results as training data or as an eval set for a model.
3(b)(xii) "redistribute, resell, or sublicense the Search Results" An agent can show results to its user. Selling the raw results as data is out.
3(b)(xiv) No retention of results after the agreement ends Delete stored results when you cancel.

The help page puts the storage rule more strictly: "It is prohibited to retain any and all data received through the Brave Search API." The Brave API page answers the obvious next question, "Can I store results or use them to train models?", with "Yes, with a custom plan." This is a plain reading of the terms for planning. If your product depends on it, ask a lawyer.

How do you connect Brave to an AI agent?

  1. Create an account at api-dashboard.search.brave.com and choose the Search plan. Choose Answers instead if you want Brave to write the answer.
  2. Add a card. The $5 credit is applied each month, and requests past it are billed.
  3. Create an API key. Send it in the X-Subscription-Token header:
curl -s "https://api.search.brave.com/res/v1/web/search?q=best+vector+database&count=10" \
  -H "Accept: application/json" \
  -H "X-Subscription-Token: $BRAVE_API_KEY"
Enter fullscreen mode Exit fullscreen mode
  1. Connect the agent. In OpenClaw, Brave is the first web_search provider it detects: run openclaw configure --section web or set BRAVE_API_KEY in ~/.openclaw/.env (OpenClaw docs). In n8n, Brave publishes a verified node with Web Search and LLM Context operations.
  2. Keep results in the task. Pass them to the model and let them go. If the agent must remember them, ask Brave for storage rights first.

When is another API a better fit?

Brave is a good fit for many agents. It runs its own index, its median search took 1.21 seconds in an open benchmark of six web search APIs, and 50 queries a second covers most agents. The same benchmark found its weak spot: on 824 multi-hop questions, Brave answered 53.9% from one search, against 64.0% for Exa and 77.4% to 80.2% for the two Google SERP APIs, which took about 8 seconds a search.

If the free allowance is the deciding point, here is what the other APIs give each month, read on November 16, 2026:

API Free allowance Paid rate per 1,000
Tavily 1,000 credits a month $8 pay as you go
Exa $10 of credit a month, up to 2,500 Lite searches $4 Lite, $7 Auto
SerpApi 250 searches a month $25 on Starter
Serper 2,500 queries, once $1.00 on the $50 pack
cloro 500 credits a month, about 166 Google searches $1.20 on Hobby ($100 for 250,000 credits)

Their storage and AI-use terms differ from Brave's, and this article did not check them. Read them before the agent writes results to a database.

How this was checked

This article is published by cloro, which sells a Google SERP API listed in the last table. Every Brave fact comes from Brave's own pages, read on November 16, 2026: the API page, the help page, the terms of service and credit terms, and the February 2026 launch post. The history of the old free plans comes from the Ask HN thread and the Implicator report, which are secondary sources. The speed and accuracy figures come from an open benchmark that publishes every graded answer. The full price comparison of Brave against five other APIs is in Brave Search API Pricing and 5 Alternatives.

Top comments (0)