Before you start
- A Novita account and an API key. See API Key Management to create one.
- Export your key so the examples below can use it.
NOVITA_API_KEYis just your Novita API key from step 1 — the same key works for every provider:
- Base URL:
https://api.novita.ai - Auth header:
Authorization: Bearer <api_key> - Content type:
application/json
Your first search
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: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 abase_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.
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,
numResultsvsmax_results). - 429 Too Many Requests — you’ve hit a rate limit. Back off and retry, or reduce request volume.
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.