POST /v1/web/search returns live web results through one interface, with automatic failover between engines. Use it to ground a model’s answer in current information, or as a standalone search API.
This is distinct from the hosted web_search_preview tool on the Responses API, which searches inside a model turn. This endpoint returns results to your code.
Basic use
Parameters
Engines and failover
By default MeshAPI tries the native engine first and falls back to Tavily if it fails — you get a result without handling engine outages yourself.Pinning
provider disables failover. If you pin an engine and it is down, the request fails rather than trying the other one. Omit provider unless you specifically need one engine’s behaviour.search_depth is a Tavily-only control and is ignored by the native engine.
Billing
Because it is a flat fee per call rather than per token, a high-volume search workload can cost more than you’d predict from token pricing alone. Budget by call count.The allowed_models trap
See API Keys for how allow-lists behave more generally.
Related
- Responses API — in-turn hosted web search
- API Keys — allow-lists and limits
- Pricing