Skip to content
Dashboard

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. Your use subject to Perplexity's Terms & Privacy Policies.

Web SearchTool
index.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);

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Web Search
Capabilities
ZDR
No Training
Release Date
$5/K
+ input costs
06/01/2026