How to Add Web Search to Any OpenAI-Compatible API

If you already use the OpenAI Python SDK, you already know how to call a model: from openai import OpenAI client = OpenAI( api_key="sk-or-...", base_url="https://api.openai.com/v1" ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "What changed in EU AI regulation this week?"}] ) print(response.choices[0].message.content) Now add one thing: live web search. With most OpenAI-compatible gateways, you don’t need tools, a search key, or an agent loop. You only change the base_url. ...

September 8, 2026 Â· 5 min

Tavily Without a Second Bill

Tavily is the default answer to “how do I give my agent web search?” It has a clean API, good retrieval quality, and a free tier. But it also has a separate account, a separate API key, and a separate dollar-denominated bill. The friction is not the dollar part. It is the second of everything: a second signup, a second key, a second dashboard, a second line on your statement. This post compares the realistic alternatives — what they replace, how they bill, and where each one fits. ...

September 8, 2026 Â· 6 min

Get started with EasyRouterAI:

Register & recharge  â†’  Start chatting

Crypto payments supported · No credit card required