Web search for LLMs is expensive: Exa on OpenRouter vs WikiVectors, tested on 105 questions
Web search for an AI model costs about $7 per 1,000 questions on OpenRouter (Exa), before the extra prompt tokens. A WikiVectors search costs $2 per 1,000. We ran 105 questions both ways with the same model. On everyday facts and this year's news they tied. On very rare facts, web search won. The best deal was both: WikiVectors first, web search only when it says "I don't know". That got 103 of 105 right for 43% less than web search alone.
Nearly the same answers, 43% cheaper
Right answers out of 105, and the cost per 1,000 questions. Gemma 4 31B on OpenRouter, search plus model.
"WikiVectors + web" asks WikiVectors first and uses web search only when the model says "I don't know". WikiVectors alone costs $2.09 per 1,000 questions, and on everyday facts, this year's news and Wikipedia facts it got 43 of 45 right to web search's 45. The first 1,000 WikiVectors searches each month are free.
Cut your search bill before you cut quality
WikiVectors is English Wikipedia, split into paragraphs and searchable by meaning, updated within the hour of each edit. One call gives your model the 5 best paragraphs with their link and revision. Use it for the questions Wikipedia can answer, and save paid web search for the rest.
How much does web search cost for an LLM?
These are list prices from each company's own pricing page, on 28 November 2026, for one search:
| Search | Per 1,000 searches | Notes |
|---|---|---|
| OpenRouter web search (Exa) | $7 | Default for most models; 5 results unless you ask for more. Plus the tokens the results add to your prompt. Source |
| Exa direct | $4 to $7 | $4 for instant, $7 for auto or fast. Source |
| Tavily | $8 to $16 | Pay as you go; basic is 1 credit, advanced is 2. Source |
| Brave Search API | $5 | Search plan. Source |
| WikiVectors | $2 | First 1,000 a month free. $1 per 1,000 over 1 million a month. Wikipedia only. |
The search fee is only part of the bill. Search results go into your prompt, and you pay the model for every token. In our test, web search added about 1,350 prompt tokens per question on average; WikiVectors added about 740. With a cheap model like Gemma 4 that is a fraction of a cent. With a big model it adds up fast.
Does Wikipedia answer as well as web search?
It depends on the question. We asked Gemma 4 31B 105 questions three ways: alone, with OpenRouter web search (Exa, 5 results), and with one WikiVectors search (5 paragraphs). Same prompt for both searches. Right answers:
| Questions | Alone | Web search | WikiVectors |
|---|---|---|---|
| Everyday facts (15) | 15 | 15 | 14 |
| This year's news, 2026 (15) | 0 | 15 | 15 |
| Rare facts on Wikipedia (15) | 2 | 15 | 14 |
| Very rare facts, from SimpleQA (60) | 9 | 59 | 32 |
| All 105 | 26 | 104 | 75 |
On the first 45, the kind of questions most apps get, it was nearly a tie: 45 for web search, 43 for WikiVectors, at less than a third of the price. On the 60 SimpleQA questions, a quiz built to be hard for AI, web search won clearly: 59 to 32.
Where does web search win?
Where the answer isn't on Wikipedia. These are some of the SimpleQA questions web search got and WikiVectors didn't, and where web search found the answer:
| Question | Answer | Web search found it on |
|---|---|---|
| What is the fuselage length of the Bell 430 helicopter in meters? | 13.44 m | an aviation reference site |
| When was the dungeon Dire Maul added to World of Warcraft? | 7 March 2005 | a fan wiki |
| What patch changed the titanium ore needed for a titanium bar in Terraria? | 1.4.1 | a fan wiki |
| Who did the set and costume design for Antigone at the 2022 Epidaurus Festival? | Kenny McLellan | the festival's own site |
Game wikis, fan wikis, company and government pages, and small reference sites hold millions of facts Wikipedia leaves out. If your users ask about those, you need web search. Two more things in web search's favor: it was faster in our test (about 1.5 seconds per answer vs 2.3 for WikiVectors plus the model), and it can find news minutes old, before anyone writes it up on Wikipedia.
One caution. SimpleQA has been public since 2024, and for 9 of the 60 questions the web search cited a quiz or trivia page. Some of those pages may repeat the quiz itself, which makes web search look a little better on SimpleQA than it would on your users' questions.
Where does WikiVectors win?
- Price. $2.09 per 1,000 questions in our test vs $7.18, search and model together. The first 1,000 searches a month are free.
- Smaller prompts. About half the tokens of web search, which matters more the bigger your model.
- It knows when it doesn't know. Out of 105, WikiVectors gave 1 wrong answer. When the paragraphs didn't have the answer, the model said "I don't know" 29 times instead of guessing. That is what makes the fallback below work.
- Clean, citable text. Every paragraph comes with its Wikipedia link, revision number and CC BY-SA license. Web pages come with ads, paywalls and terms you have to check.
- This year's news, too. We follow Wikipedia's live edits, so 2026 news scored the same as web search: 15 of 15.
How do I get web search quality for less?
Ask WikiVectors first. If the model says "I don't know", ask again with web search. In our test that sent 29 of 105 questions to web search, and got 103 of 105 right for $4.08 per 1,000 questions, 43% less than web search for everything (104 right, $7.18). The more of your questions Wikipedia can answer, the bigger the saving.
import json, os, urllib.request def post(url, body, key): req = urllib.request.Request(url, json.dumps(body).encode(), {"Authorization": "Bearer " + key, "Content-Type": "application/json"}) return json.load(urllib.request.urlopen(req)) SYSTEM = ("Answer in as few words as possible, using only the context. " "If nothing in the context answers the question, answer: I don't know.") MODEL = "google/gemma-4-31b-it" OPENROUTER = "https://openrouter.ai/api/v1/chat/completions" def ask(question): # 1. WikiVectors: 5 paragraphs, $0.002 found = post("https://wikivectors.com/v1/search", {"query": question, "limit": 5}, os.environ["WIKIVECTORS_KEY"])["results"] context = "\n\n".join(f"Page: {r['title']}\n{r['text']}" for r in found) msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": f"Context:\n{context}\n\nQuestion: {question}"}] out = post(OPENROUTER, {"model": MODEL, "messages": msgs}, os.environ["OPENROUTER_API_KEY"]) answer = out["choices"][0]["message"]["content"].strip() if "don't know" not in answer.lower(): return answer # 2. Only if Wikipedia didn't have it: web search, about $0.007 msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": f"Question: {question}"}] out = post(OPENROUTER, {"model": MODEL, "messages": msgs, "plugins": [{"id": "web", "engine": "exa", "max_results": 5}]}, os.environ["OPENROUTER_API_KEY"]) return out["choices"][0]["message"]["content"].strip()
Using an agent with tools instead? Give it both: the WikiVectors MCP server for Wikipedia, and a web search tool, and tell it to try Wikipedia first.
When should I skip web search entirely?
When your questions are the kind Wikipedia covers: people, places, history, science, sports, films and books, companies, and this year's big news. For those, our test found the same answers at less than a third of the cost. Keep web search for product prices, game and fan trivia, small local businesses, documentation, and news from the last hour.
How fair is this test?
- We picked the questions before running anything: our 45 from the grounding test, plus 60 drawn at random from the 300 SimpleQA questions in the SimpleQA guide.
- Same model, same prompt, same settings for both searches: Gemma 4 31B on OpenRouter, thinking off, 5 results each. OpenRouter's default web search for Gemma is Exa.
- Real costs: what OpenRouter charged for each call (its
usage.cost, web search fee included), plus WikiVectors' list price of $0.002 per search. - Graded blind with SimpleQA's own grading rules. Claude graded all 315 answers, shuffled, with the web links removed so it couldn't tell which search an answer came from.
- One model, one run, 105 questions. A strong hint, not the last word.
Questions people ask
Is web search worth it for a chatbot?
For questions outside Wikipedia, yes: it found answers nothing else did. For questions inside Wikipedia, you're paying about 3.4 times more for the same answer. Route by trying the cheap search first.
Does OpenRouter's :online use Exa?
For most models, yes. Adding :online to a model name turns on the web plugin. OpenAI, Anthropic, Google and a few others use their own built-in search; other models use Exa at $7 per 1,000 searches.
Can I use Wikipedia's own search API instead?
It's free, but it returns whole pages, not the paragraph with the answer. In our grounding test, models got 3 to 6 of 15 rare facts right with it, and 15 of 15 with WikiVectors.
Wikipedia for your AI app, without the limits
WikiVectors searches all of English Wikipedia and returns short, cited paragraphs, fresh within the hour. 1,000 free searches a month, then $2 per 1,000.
More guides
- SimpleQA with Gemma 4 12B: from 2% to 45% right with one Wikipedia searchWe ran 300 random questions from OpenAI's SimpleQA fact quiz on Gemma 4 12B, alone and with 5 WikiVectors paragraphs. Right answers went from 6 to 135, wrong ones from 151 to 21. Code, every answer, and where it still misses.
- LLM knowledge cutoff: why your AI doesn't know 2026, and how to fix itWhat a knowledge cutoff is, the real cutoffs of gpt-oss, Gemma 4 and DeepSeek, and a 15-line fix: four models went from 0 to 15 of 15 on this year's news with one Wikipedia search.
- LM Studio and Wikipedia: give your local model this year's news with MCPConnect WikiVectors to LM Studio as an MCP server so a local model answers current events from today's Wikipedia. Gemma 4 12B went from 0 to 8 of 8. Setup, system prompt, real answers and a video of a real run.