> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tavily

> AI-optimized search engine designed specifically for LLM and agent workflows, returning pre-processed results ready for consumption.

AI-optimized search engine designed specifically for LLM and agent workflows, returning pre-processed results ready for consumption. Best for agent research tasks where results need to be immediately usable without post-processing. Unlike general search APIs (Serper, Brave), Tavily formats results for AI comprehension and includes a separate content extraction endpoint for deep page reading.

2 endpoints available through Lava's AI Gateway. See the [Tavily API docs](https://docs.tavily.com/documentation/api-reference/endpoint/search) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### AI-optimized web search

**POST** `https://api.tavily.com/search` — \$0.008 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.tavily.com/search', { body: {"query":"your search query"} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.tavily.com%2Fsearch" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"query":"your search query"}'
    ```
  </Tab>
</Tabs>

### Extract content from URLs

**POST** `https://api.tavily.com/extract` — \$0.008 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.tavily.com/extract', { body: {"urls":["https://example.com"]} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.tavily.com%2Fextract" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"urls":["https://example.com"]}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
