Introduction
Eden AI is an AI gateway. It exposes models and expert AI features from many vendors behind one API, so you can switch providers by changing a single model string. Eden’s web search feature returns ranked web results from the provider you choose. Set the model toweb/search/tavily and Eden runs the search with Tavily.
You don’t need a Tavily account for this. Requests authenticate with your Eden AI API key, and searches are billed through your Eden AI account.
Prerequisites
- An Eden AI API key from the Eden AI dashboard.
Sandbox keys return mock responses without calling Tavily. Use a production key to get real Tavily results.
Set up Tavily in Eden AI
1
Send a search with the Tavily model
Send a
POST request to /v3/universal-ai with model set to web/search/tavily. Put the query in input, and put any Tavily-specific options, such as include_domains, in provider_params.2
Read the results
The response confirms which provider ran the search and returns one entry per page in
output.results, each with a title, url, content snippet, and relevance score. Because include_domains is set to github.com, every result comes from that domain.Configure Tavily searches
Eden splits search options into two objects:inputholds Eden’s common search fields, which work the same for every provider.provider_paramsholds Tavily-specific options, which Eden passes through to Tavily Search.
input:
Set Tavily options in
provider_params, using the same field names as the Tavily Search API. For example:
search_depth, topic, time_range, start_date, end_date, country, include_domains, exclude_domains, chunks_per_source, include_raw_content, and include_images. It rejects any other field with 400 Bad Request. See Eden AI: Web search for the full list.
depth in input is Eden’s provider-agnostic search tier, and Eden prices each tier separately. To control how Tavily runs the search, set search_depth (basic, advanced, fast, or ultra-fast) in provider_params.Best practices
- Set Tavily’s search depth explicitly. Use
search_depth: "advanced"inprovider_paramswhen you need more relevant content from each result, andbasicorfastfor quick lookups. - Scope searches with domain filters. Use
include_domainsto keep results within sources you trust, such as official documentation or advisory databases, andexclude_domainsto drop sources you don’t want. - Check provider parameters when you add fallbacks. If the request uses Eden’s
fallbacks, everyprovider_paramsfield must be allowed for Tavily and for each fallback provider, or Eden rejects the whole request. - Test with a production key. Sandbox keys return mock data, so they can’t confirm that your query or provider parameters return the results you expect.