# Perplexity Search

Search the web using Perplexity's Search API for real-time information, news, research papers, and articles. Provides ranked search results with advanced filtering options including domain, language, date range, and recency filters.

- **Model ID:** `perplexity/search`
- **Type:** tool
- **Providers:** perplexity
- **Context window:** Not applicable
- **Maximum output tokens:** Not reported
- **Pricing:** See the provider details below
- **Canonical page:** https://vercel.com/ai-gateway/models/search

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { gateway, generateText } from 'ai';

const result = await generateText({
  model: 'openai/gpt-5-nano',
  prompt: 'What are the latest developments in AI?',
  tools: {
    perplexity_search: gateway.tools.perplexitySearch(),
  },
});

console.log(result.text);
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/search)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://vercel.com/docs/ai-gateway/models-and-providers/web-search)
- [Provider pricing](https://docs.perplexity.ai/guides/pricing)
