Executive Summary
AI Gateway has launched a new provider-agnostic web search feature, enabling developers to give any connected AI model real-time internet access. Powered by Perplexity and implemented with a single line of code via the AI SDK, this tool allows models from providers like OpenAI, Anthropic, and Google to overcome knowledge cutoffs and provide up-to-date information. The feature is designed to provide a consistent search experience across different models, enhancing applications like chatbots and developer assistants.
Key Takeaways
* Universal Compatibility: The feature adds web search capabilities to any model available through AI Gateway, including those that lack a native search function.
* Powered by Perplexity: The underlying search technology is provided by Perplexity.
* Simple Implementation: Developers can enable search by adding the `gateway.tools.perplexitySearch()` tool to their AI SDK calls.
* Consistent Behavior: It provides a standardized search tool that works identically across all supported model providers, which is ideal for multi-model applications.
* Primary Use Cases: The tool is aimed at keeping AI agents current for tasks like developer tooling (checking library versions), market monitoring, and answering questions about recent events.
* Pricing: The service is priced at $5 per 1,000 search requests, which is passed through from Perplexity with no added markup.
Strategic Importance
This feature enhances AI Gateway's value by abstracting a critical capability—real-time data access—making the platform a more versatile and unified solution for developers building applications on multiple LLMs.