Perplexity Web Search Now Available for Any Model on Vercel AI Gateway
Key point
Perplexity's web search capability can now be integrated and used across all AI models through Vercel AI Gateway.
Details
Vercel AI Gateway now supports Perplexity Search as a universal web search tool that can be used with any model. Unlike native search tools that are limited to specific providers, Perplexity Search lets you add web search capability to any model regardless of provider.
Developers using the AI SDK simply need to import gateway.tools.perplexitySearch() from @ai-sdk/gateway and pass it as perplexity_search in the model's tools parameter.
Key use cases include:
- Models without native search capability: Web search can be enabled even for models like
zai/glm-4.7that don't provide their own search tool. - Developer tools and CI assistants: Real-time information can be fetched on the latest package versions, recently merged PRs, release notes, or documentation updates.
- Maintaining consistency across providers: The same search behavior can be maintained across multiple providers without needing to rewrite search logic.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.