# Exa
> Exa is a web search API that adds web search capabilities to your LLMs. Exa can search the web for code docs, current information, news, articles, and alot more. Exa performs real-time web searches and can get page content from specific URLs. Add Exa web search tool to your LLMs in just a few lines of code.

- **Package:** @exalabs/ai-sdk
- **Author:** Exa
- **Tags:** search, web, extraction

## Environment Variables
- `EXA_API_KEY`

## Included Tools
- **webSearch:** Search the web for code docs, news, articles, and real-time information

## Installation
```bash
npm install @exalabs/ai-sdk
```

## Usage
```typescript
import { generateText, stepCountIs } from 'ai';
import { webSearch } from '@exalabs/ai-sdk';

const { text } = await generateText({
  model: 'google/gemini-3-pro-preview',
  prompt: 'Tell me the latest developments in AI',
  tools: {
    webSearch: webSearch(),
  },
  stopWhen: stepCountIs(3),
});

console.log(text);
```

## Links
- [Documentation](https://docs.exa.ai/reference/vercel)
- [npm](https://www.npmjs.com/package/@exalabs/ai-sdk)

---
[Full Library Index](/library.md)