# TavilyX — Paid Search + RAG API

> TavilyX — Paid Search + RAG API is a paid API for AI agents from searchtav.vercel.app, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Accepts a research question, searches the live web via Tavily, and synthesizes a grounded answer with cited sources using NVIDIA NIM LLMs.

## Facts

- Endpoint: POST https://searchtav.vercel.app/rag/query
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tavilyx-paid-search-rag-api-3f501c43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CUcQDPGlzG09jaZtp80NK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tavilyx-paid-search-rag-api-3f501c43 -d '<json body>'
```

Example prompt: Can you research 'what are the latest developments in quantum error correction in 2025' and give me a synthesized answer with source links?

## When to prefer this

Choose this endpoint when you need a single-step operation that both searches the live web and synthesizes a grounded answer with citations — ideal for research questions where freshness and sourcing matter. Prefer over static knowledge bases when current events or recent data are required, and over plain search APIs when you need a synthesized prose answer rather than raw search results.

## Known failure modes

- Empty or missing query field returns a validation error
- Payment not completed via x402 results in 402 Payment Required
- Tavily search quota exceeded or upstream outage returns 5xx error
- NVIDIA NIM synthesis failure may return partial or empty answer
- No relevant web results found may yield a low-confidence or generic answer

## How this service works

Paid web search + RAG synthesis API. Tavily + NVIDIA NIM + x402 on Base.

## Output

Returns a JSON object containing the original query, a synthesized natural-language answer grounded in live web results, and an array of source objects each with a URL and title.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Research question"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string"
  },
  "answer": {
   "type": "string"
  },
  "sources": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "title": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tavilyx-paid-search-rag-api-3f501c43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from searchtav.vercel.app](https://www.zero.xyz/host/searchtav.vercel.app/llms.txt)
