Web search
openrouter:web_search
Lets any model search the web mid-request. The model decides when to search and what to query, OpenRouter runs the search on the configured engine and returns titles, URLs, and snippets, and the model synthesizes them into its answer with citations.
How it works
For questions that need current information, like this week’s news or today’s prices.
Your model decides a search would help and writes the query.
OpenRouter runs it on the configured engine and returns titles, URLs, and snippets.
Your model answers with citations, and can search again in the same request.
Providers and pricing
The default engine, auto, uses the model provider’s native search on endpoints that advertise it and falls back to Exa otherwise. Set engine explicitly to pin a provider.
Standard model token costs apply to every request.
Using this tool
OpenRouter runs the tool during the request and returns the result to the model, so no client-side tool loop is needed.
Supported APIs: Chat Completions, Responses, and Anthropic Messages.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:web_search"
}
],
"messages": [
{
"role": "user",
"content": "What were the major AI announcements this week?"
}
]
}'Setup, parameters, and examples in the docs.
Read the integration guideBenchmarks
- BrowseComp
Hard-to-locate facts on the live web, scored on persistent multi-step research.
- DeepSearchQA
Questions whose answers are lists, scored for exhaustive retrieval with no padding.
- HLE
Humanity's Last Exam as a search benchmark: expert questions answered with live search.
- WideSearch
Fill an entire table; answer-item accuracy scores partial matches.