Skip to main content
AI Search gives your application live access to the web through a single Novita gateway. Instead of signing up with each search provider, managing separate keys, and learning different auth schemes, you call Novita with one API key and pick the search engine you want per request. This guide takes you from zero to a working web search in a few minutes. You’ll authenticate with a single Novita API key, run a search, and see how to switch providers without changing your setup.

Before you start

  1. A Novita account and an API key. See API Key Management to create one.
  2. Export your key so the examples below can use it. NOVITA_API_KEY is just your Novita API key from step 1 — the same key works for every provider:
All AI Search endpoints share the same base URL and authentication:
  • Base URL: https://api.novita.ai
  • Auth header: Authorization: Bearer <api_key>
  • Content type: application/json
The example below runs an Exa search. Every request is just a route plus a JSON body.

Switching search engines

Switching search engines means changing the route and the request body to match the provider — your key, host, and auth header stay the same. Here’s the same intent expressed for Tavily:
Note the small differences: Exa uses numResults, Tavily uses max_results. Each provider’s full parameter list lives in its API reference.

Bring your own provider SDK

AI Search is a passthrough integration, so a provider’s official SDK works as long as it lets you override the base URL — point it at the matching gateway route and pass your Novita key. The Exa Python SDK, for example, takes a base_url:
If an SDK doesn’t expose a base-URL setting, just call the REST endpoints directly with any HTTP client, as shown above — that path always works.

How it works

Novita exposes each provider as a passthrough endpoint. Your request is authenticated with your Novita API key, then forwarded to the upstream provider using the provider’s own request and response format.
  • One credential. Use your existing Novita API key as Bearer <api_key> for every provider.
  • Provider-native bodies. Request and response shapes match the upstream provider, so the provider’s own examples and request formats carry over — just point the base URL at Novita.
  • Swap engines per request. Switching providers means changing the route and the body, not your auth or your account setup.
This is useful whenever a model needs information it wasn’t trained on: current events, fast-moving documentation, prices, or any fact that lives on the open web. Pair it with the LLM API to build retrieval-augmented generation (RAG), research agents, and web-grounded assistants.

Supported providers

Exa

Neural and semantic web search with built-in content extraction and answer synthesis. Strong for research, finding pages by meaning, and structured output.

Tavily

Fast, LLM-optimized search and retrieval with site crawling and mapping. Strong for news and finance topics, extraction pipelines, and low-latency lookups.

Capabilities at a glance

Endpoint reference

Troubleshooting

  • 401 Unauthorized — the key is missing or malformed. Confirm the header is exactly Authorization: Bearer <api_key>.
  • 400 Bad Request — a parameter doesn’t match the provider’s schema. Check that you’re using that provider’s field names (for example, numResults vs max_results).
  • 429 Too Many Requests — you’ve hit a rate limit. Back off and retry, or reduce request volume.
For the full list, see the Errors section on any AI Search API reference page.

Where to go next

Web-Grounded Answers & RAG

Feed search results into the LLM API to build retrieval-augmented generation (RAG) pipelines with cited answers.
Last modified on July 15, 2026