Web search for LLMs is expensive: Exa on OpenRouter vs WikiVectors, tested on 105 questions

Updated 2026-11-28 · 8 min read

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.

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:

SearchPer 1,000 searchesNotes
OpenRouter web search (Exa)$7Default 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 $16Pay as you go; basic is 1 credit, advanced is 2. Source
Brave Search API$5Search plan. Source
WikiVectors$2First 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:

QuestionsAloneWeb searchWikiVectors
Everyday facts (15)151514
This year's news, 2026 (15)01515
Rare facts on Wikipedia (15)21514
Very rare facts, from SimpleQA (60)95932
All 1052610475

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:

QuestionAnswerWeb search found it on
What is the fuselage length of the Bell 430 helicopter in meters?13.44 man aviation reference site
When was the dungeon Dire Maul added to World of Warcraft?7 March 2005a fan wiki
What patch changed the titanium ore needed for a titanium bar in Terraria?1.4.1a fan wiki
Who did the set and costume design for Antigone at the 2022 Epidaurus Festival?Kenny McLellanthe 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?

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?

Run it yourself: the questions, the code, every answer with its cost and tokens, and every grade are in websearch-test.zip.

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.

Just your email, no card. We send your key right away.

More guides