OneProvider
Guides

Free Web Search

Give Claude Code or your Python app free web search with Tavily when built-in search is missing. 1,000 free credits a month, no card needed.

Built-in web search for Claude models, and a free search service for GPT models and clients without a search tool.

All models, capabilities, and prices Documentation index for AI agents: https://oneprovider.dev/docs/llms.txt

Built-in search for Claude models

Claude models search the web themselves. Claude Code’s WebSearch tool and the Messages API tool web_search_20250305 (or web_search_20260209) work through your OneProvider key, with no extra service. Every search is counted in usage.server_tool_use.web_search_requests.

bash
curl -sS https://api.oneprovider.dev/v1/messages \
-H "x-api-key: $ONEPROVIDER_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "What is the latest stable Python version?"}],
"tools": [{"type": "web_search_20250305", "name": "web_search", "max_uses": 3}]
}'

GPT models do not search: on /v1/responses the web_search tool is accepted, but the model answers from memory, so the answer can be out of date. For GPT models and for clients without a search tool of their own, use the free service below.

Source: Anthropic web search tool .

Free: 1,000 API credits every month Tavily provides a free API key with no credit card required. A basic search costs 1 API credit, so the free plan is enough to get started.

Your OneProvider key gives you model access. If a model or client cannot search the web itself, add a separate free search service: your OneProvider key does not need to change.

1. Get a free key

Sign up at Tavily and copy your API key. Tavily currently includes 1,000 free credits per month with no credit card required.

2. Use it in your code

bash
pip install tavily-python
export TAVILY_API_KEY="tvly-..."
python - <<'PY'
import os
from tavily import TavilyClient
client = TavilyClient(api_key=os.environ["TAVILY_API_KEY"])
print(client.search("Latest Claude Code release")["results"])
PY

3. Add it to Claude Code

bash
claude mcp add tavily --transport http https://mcp.tavily.com/mcp/

Restart Claude Code and complete Tavily authorization in the browser. You can then ask Claude to search the web; the MCP server sends the search request to Tavily.

Sources: Tavily Quickstart · Tavily MCP .

Quick answers

Which base URL do I use?

Claude Code and Anthropic SDKs use https://api.oneprovider.dev. OpenAI SDKs and OpenAI-compatible clients use https://api.oneprovider.dev/v1. One key works behind both; the model list is on the models page ; rates are on the pricing page .

How do I authenticate?

Send the raw sk-… key in x-api-key or Authorization: Bearer: one of them, never both. Keep the key in an environment variable, not in a file that gets committed. More on authentication .

Where do I get a key?

Open your cabinet in the Telegram bot @oneprovider_robot or at app.oneprovider.dev, top up the balance and press “Issue a key”. Each key can carry its own spend limit. Cabinet & API keys .

What do 401, 404 and 429 mean?

401: the key is missing, mistyped or sent in the wrong header; paste the whole key without quotes or spaces. 404: usually a wrong base URL, for example a missing or doubled /v1. 429 with “Insufficient balance”: the cabinet balance or the key’s spend limit is used up, so top up instead of retrying; any other 429 is a rate limit, so wait for Retry-After. Details: error codes and troubleshooting .

Why do streams cut off or reset?

VPN and VLESS proxies often buffer SSE or break HTTP/2 negotiation. OneProvider has no regional restrictions and does not buffer streams, so turn the proxy off and retry.

Where do I ask if this is not enough?

Message @Oneproviderhelpbot on Telegram or open “Support” in the web cabinet, with the HTTP status code and the exact error message. How support works .

Last updated: 2026-11-28 Found a bug? @Oneproviderhelpbot