AI Gateway and AI SDK Integration
Use Perplexity Web Search with Vercel AI Gateway

Use Perplexity Web Search with Vercel AI Gateway

1/14/2026

What this post added

Introduces provider-agnostic web search functionality to Vercel AI Gateway using Perplexity, allowing any model to search the web in real-time. Demonstrates integration with the AI SDK via `gateway.tools.perplexitySearch()`. Highlights use cases for models without native search, developer tooling, CI assistants, provider-agnostic chatbots, and operational/market-aware agents. Mentions provider-specific tools from Anthropic, OpenAI, and Google as alternatives. Details pricing for Perplexity web search requests ($5 per 1,000 requests) and provides links to documentation.

Read the original post ↗