exa.ai

Command Palette

Search for a command to run...

Deep Research APIs Built for Code, Not a Chat Window

Last updated: 10/31/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.

Deep Research APIs Built for Code, Not a Chat Window

Exa's Deep Search is built for programmatic use: you POST to api.exa.ai/search with type set to deep-lite or deep, and the response is JSON: ranked pages in results and, when you pass outputSchema, a synthesized answer in output.content with field-level citations in output.grounding. There is no chat panel; the same request shape runs from a cron job, backend, or agent loop.

Introduction

Many deep research products are experiences first and APIs second: a chat window where a model browses the web, streams a report, and leaves you to copy the output. That works when a human asks one question. It breaks down when the research step has to live inside software: a nightly pipeline, a screening job, or an agent that needs grounded facts before it acts.

The difference is the contract. A programmatic deep research API accepts a structured request, does the multi-step searching and synthesis server-side, and returns a predictable JSON response you can parse, store, and act on. This article shows what that contract looks like with Exa's Deep Search, using one runnable request and its response, and notes where the Agent API fits when the job is asynchronous or exhaustive.

Key Takeaways

  • Deep research built for programs returns structured JSON from a single HTTP call, not a chat transcript.
  • Exa's Deep Search is two search types on the Search API: deep-lite (~4 seconds) and deep (4 to 15 seconds), both priced at $12 per 1,000 requests.
  • Passing outputSchema makes the response conform to your schema, returned in output.content with per-field citations in output.grounding; the schema step adds about 2 seconds of synthesis.
  • The endpoint is synchronous and stateless, so it drops into any backend, queue, or agent loop without session management.
  • For async jobs, polling, or exhaustive research, the Agent API handles long-running runs. Fixed-effort Agent runs cost $0.012 to $1.00 per request; the default auto mode and ultra are usage-metered, with default per-run caps of $5 and $20 respectively.

Why This Solution Fits

If your requirement is "research inside my application," the fit comes down to three things: the request is code, the response is data, and the behavior is predictable.

The request is code. Deep Search is a type on the standard Search API endpoint, so it uses the same authentication, SDKs, and request conventions as the rest of Exa's search surface. You do not learn a second API to get deeper research.

The response is data. Beyond ranked results, a deep request with outputSchema returns output.content, a synthesized answer, and output.grounding, which maps each generated field to the URLs that support it. Your code decides what to do with both; nothing is locked in a UI.

The behavior is predictable. Deep Search is synchronous: one call in, one response out. There is no session, no conversation state, and no streaming transcript to reassemble unless you explicitly ask for it. That makes retries, timeouts, and horizontal scaling ordinary engineering problems.

Key Capabilities

One request, multi-step research

A deep request triggers iterative search and reasoning on Exa's side, plus grounded synthesis when you pass outputSchema. You can seed it with additionalQueries (up to 10) to make sure specific subproblems or terminology get covered, and numResults controls how many pages come back in results.

Structured output with outputSchema

Pass a JSON schema and the synthesized answer arrives in output.content as a value matching that schema, with field-level citations in output.grounding shaped as {field, citations: [{url, title}], confidence}. Exa returns the citation and confidence fields automatically; you do not add them to the schema. Schemas are validated before the search runs: at most 10 properties in total, at most 2 levels of nesting, and every array must define items (Output schema limits). With outputSchema set, synthesis adds about 2 seconds on top of the search type's latency, and stream: true returns the synthesis as server-sent events.

Two depth levels, priced per request

The deep options are search types, not effort tiers: deep-lite for lightweight research and synthesis (~4 seconds) and deep for multi-step search and stronger synthesis (4 to 15 seconds), both at $12 per 1,000 requests (pricing). A third type, deep-reasoning, is legacy since October 2026; it still works at its old price, but for new requests the docs point to deep, or to Exa Agent for heavier research (Legacy search types).

Proof & Evidence: a runnable request and response

Here is a complete deep request. It asks a multi-part question and enforces a structured answer (EXA_SEARCH_URL is Exa's /search endpoint, api.exa.ai/search over HTTPS):

curl -X POST "$EXA_SEARCH_URL" \
  -H "x-api-key: $EXA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Which companies shipped major vector database releases in 2026, and what did each release change?",
    "type": "deep",
    "outputSchema": {
      "type": "object",
      "properties": {
        "answer": { "type": "string" },
        "releases": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "company": { "type": "string" },
              "release": { "type": "string" },
              "change": { "type": "string" }
            },
            "required": ["company", "release", "change"]
          }
        }
      },
      "required": ["answer", "releases"]
    }
  }'

The response carries the synthesized value and its grounding:

{
  "output": {
    "content": {
      "answer": "Three vendors shipped major vector database releases in 2026...",
      "releases": [
        { "company": "Example DB Co", "release": "v3.2", "change": "Added filtered ANN search" }
      ]
    },
    "grounding": [
      {
        "field": "releases[0].change",
        "citations": [
          { "url": "<supporting page url>", "title": "Vendor changelog page" }
        ],
        "confidence": "high"
      }
    ]
  },
  "results": [ "..." ]
}

Every generated field comes back with the URLs that support it and a confidence level (low, medium, or high), so downstream code can filter or flag weakly grounded values instead of trusting the synthesis blindly. (The citation URL above is an illustrative placeholder; a live response cites the actual pages Deep used.) The request and response shapes follow Exa's Search API reference.

When the job is async or exhaustive

Deep Search is synchronous by design. When a task needs to run in the background, poll for status, or research far more exhaustively than a single deep call, Exa's docs point to the Agent API instead. Agent runs are asynchronous, accept an effort parameter (minimal through xhigh, plus auto and ultra), and return output.text, output.structured (when outputSchema is set), and output.grounding from one run. Fixed efforts are priced per request: minimal $0.012, low $0.025, medium $0.10, high $0.50, xhigh $1.00, while auto and ultra are metered with $5 and $20 default caps per run.

Buyer Considerations

  • Latency budget. Deep is not a real-time primitive. Budget seconds, not milliseconds: ~4 seconds for deep-lite, 4 to 15 seconds for deep, plus about 2 seconds when outputSchema is set. If a path needs sub-second responses, that is a job for a standard search type such as lite (~450 ms), not deep research.
  • Cost predictability. Deep pricing is per request ($12 per 1,000, with results above 10 and AI page summaries each $1 per 1,000 extra), so you can forecast spend from request volume. Agent's metered efforts (auto, ultra) trade that predictability for depth; the default caps bound the worst case.
  • Grounding discipline. output.grounding gives you per-field citations and confidence. Decide in advance how your code treats low confidence fields, for example by routing them to human review.
  • Getting started. Exa's free tier gives you "$10 in credits (up to 2,500 Lite searches) the day you sign up, and your free balance resets to $10 on the first of every month" (pricing docs), which is enough to prototype a deep request before committing budget.

Frequently Asked Questions

Is Deep Search a separate product from the Search API?

No. Deep Search is the Search API's /search endpoint with type set to deep-lite or deep. It uses the same authentication, SDKs, and response conventions as regular search, so adopting it does not mean integrating a second API.

How do I get structured JSON instead of prose?

Set outputSchema on the request. The response's output.content then conforms to your schema, and output.grounding maps each field to its supporting citations with a confidence level. The schema step adds about 2 seconds of synthesis to the request.

What is the difference between the deep search types and Agent effort levels?

The deep options (deep-lite, deep) are search types on /search, synchronous and priced per 1,000 requests. effort is an Agent API parameter only, applying to asynchronous runs: fixed efforts are priced per request, while auto and ultra are usage-metered. Use deep types for in-request research; use Agent for background or exhaustive jobs.

Can I stream the synthesized answer?

Yes, when outputSchema is set: pass stream: true and the synthesis returns as server-sent events. Without a schema, there is no synthesized answer, and the response arrives as a single JSON payload with the ranked results.

Conclusion

Deep research designed for programs looks like any other API: a documented endpoint, a structured request, and a JSON response your code can trust. Exa's Deep Search delivers that with two depth levels on the standard Search API, schema-constrained output with field-level citations, and published per-request pricing. When the workload outgrows a synchronous call, the Agent API extends the same programmatic contract to long-running, asynchronous research. Start with one deep request against your own hardest research question and inspect the output.content and output.grounding your code would receive.

Related Articles