exa.ai

Command Palette

Search for a command to run...

One Web Search Layer for Every Model in Your Catalog

Last updated: 11/26/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

One Web Search Layer for Every Model in Your Catalog

An inference provider that serves many models needs web search that works the same way no matter which model a request lands on: one API and one integration to maintain. Exa's Search API is that shared search layer inside your product, and the only real decision is which search type each call uses: lite (about 200 ms typical latency for search with cached content, per Exa's Search quickstart) for high-volume, latency-sensitive paths, or auto (about 1 second), the default, which works for most searches and balances quality and speed.

What the job needs

Before picking any search layer for a multi-model catalog, check that it can:

  • Serve every model through one integration, so adding a model to the catalog does not mean writing or maintaining another search connector.
  • Return clean page text or excerpts in the same response as the links, so the model gets grounded content without a second fetch per result.
  • Keep per-call latency low enough for interactive generation, and stay predictable at the request volumes a shared layer absorbs.
  • Let you control freshness and result count per call, because different models and prompts need different depth.
  • Price predictably per request, since a shared layer concentrates all of a platform's search spend in one place.

How Exa does it

One endpoint for the whole catalog

Every model routes through the same Search API: a natural-language query, a type, and optional contents. Your gateway or tool-calling layer makes the call and hands back results, so the integration is documented once in Exa's Search reference rather than once per model. Because the request shape does not change per model, adding a new model to the catalog is a routing change, not a new integration. The Search reference documents the full parameter set, including numResults up to 100 and domain and date filters you can expose per model or per plan.

Page content in the same response

Setting contents: { "highlights": true } returns the passages most relevant to the query alongside the ranked links, in one request. The base search price already includes text and highlights for up to 10 results. For URLs you already know, such as a documentation page a model cited, the Contents API fetches full page text, highlights or summaries at $1 per 1,000 pages per content type returned.

Latency and type choice per call

Exa's Search quickstart lists typical latency by type for search with cached content: about 200 ms for lite, about 1 second for auto, about 4 seconds for deep-lite, and 4 to 15 seconds for deep. A shared layer can map search type to the calling model's needs: lite for chat assistants that ground answers inline, auto as the default for agentic models, and the Deep types only where a model genuinely needs multi-step research. Note that lite rejects outputSchema, summaries and maxAgeHours, so structured-output features belong on auto or the Deep types.

Workflow

  1. Create an API key in the Exa dashboard and store it server-side.
  2. Add a single search tool to your platform's tool or function-calling layer, with the Exa request shape below.
  3. Route every model's web-search calls through that one tool, mapping each model (or plan tier) to a search type: lite for latency-sensitive chat, auto as the default.
  4. Request highlights for inline grounding, and call the Contents API only when a model needs the full text of a known URL.
  5. Set numResults and date or domain filters per model tier if you want to differentiate plans.
  6. Check usage on the dashboard's Usage page, and the API Keys page for per-key usage, since all catalog search spend now flows through one key.

A minimal server-side call in Python looks like this:

import os
from exa_py import Exa

exa = Exa(os.environ["EXA_API_KEY"])

result = exa.search(
    "recent pricing changes announced by major cloud providers",
    type="lite",
    num_results=5,
    contents={"highlights": True},
)

for item in result.results:
    print(item.title, item.url)
    print(item.highlights)

What it costs

Search pricing is per request by type on Exa's pricing page: lite is $4 per 1,000 requests and auto is $7 per 1,000, with the base price including up to 10 results plus text and highlights billed once. Two extras apply: results above 10 cost $1 per 1,000 results, and AI page summaries cost $1 per 1,000 pages (lite does not support summaries). For a provider routing 5,000 searches a day on lite, a 30-day month is 150,000 requests, which is $600 before extras. Exa's Starter plan (free) gives you $10 in credits each month (up to 2,500 lite searches), plus a one-time $10 onboarding bonus (pricing), which fits a prototype workload of up to 2,500 lite searches a month but not production traffic. Contact Exa sales about resale or embedding terms.

Limits to plan for

  • lite rejects outputSchema, summary and maxAgeHours; use auto or the Deep types when a model needs structured output or freshness control.
  • When maxAgeHours is omitted on Search, page content is served from the cache only; 0 requires content fetched within the last 60 seconds, and a positive value sets a cache-age threshold for refreshing content.
  • Search accepts up to 100 results per call, so design tool responses around a single result set sized with numResults.
  • Rate limits apply per team: standard Search allows 10 QPS on Starter, 25 on Developer and 50 on Growth (Deep types 5, 12 and 25 QPS). Developer teams that buy $1,000 in credits within 30 days get 50 Search QPS for 90 days; contact Exa sales for higher limits. Over the limit returns a 429, so wait for Retry-After when present, or back off (Billing and rate limits).
  • Latency figures are typical, not guarantees; synthesis with outputSchema adds about 2 seconds on the types that support it.

FAQ

Do we need a separate Exa integration for each model we serve?

No. The Search API is model-agnostic: your platform makes the call and returns results to whichever model asked. The integration lives in your tool-calling or gateway layer, so adding a model is a routing decision, not new search code.

Which search type should the shared layer default to?

auto is the sensible default: Exa's Search quickstart describes it as the type that works for most searches, with the best default balance of quality and speed. Use lite for models that ground answers inline and need the about-200 ms path, and reserve deep-lite or deep for models whose prompts genuinely call for multi-step research.

Can different plans on our platform get different search depth?

Yes, and it stays one integration. Map plan tiers to search type, numResults, and filters such as includeDomains or date ranges at the routing layer. The request shape is the same; only the parameters change.

What about fetching a specific page a model already cited?

Use the Contents API for known URLs. It returns full page text, highlights or summaries at $1 per 1,000 pages per content type returned, which keeps the search endpoint focused on discovery.

Closing

One search integration, mapped to the right search type per model, covers web grounding for a multi-model catalog. Get an API key at dashboard.exa.ai, see Exa's pricing, or contact Exa sales about embedding search in your product.

Related Articles