
AI Gateway adds Browserbase Search and Fetch tools
Quick Answer
AI Gateway now integrates Browserbase Search and Fetch tools, allowing models to access real-time information with a single API key.
Quick Take
This update enhances capabilities for model providers, enabling web search and page retrieval functionalities across various models. Available in AI SDK 7.0.116 and later, users can easily implement these tools for improved data access.
Key Points
- Browserbase tools are accessible via AI Gateway with one API key.
- Models can now perform web searches and retrieve pages seamlessly.
- Update to AI SDK 7.0.116 or later to use these new features.
- Example code demonstrates how to implement search and fetch tools.
- Explore pricing and configuration options in the documentation.
📖 Reader Mode
~1 min readBrowserbase Search and Fetch are now available through AI Gateway. Give your models access to current information, find relevant pages, and retrieve their contents, alongside Browserbase's existing AI SDK and Vercel Marketplace integrations.
AI Gateway lets you use Browserbase's tools across model providers with one API key. Add web search and page retrieval to any model that supports tool calling, and keep the same tools when you switch models.
These helpers are available in AI SDK 7.0.116 and later. Update with pnpm add ai@latest and set your AI_GATEWAY_API_KEY. To add search and fetch, pass the helpers in tools .
import { gateway, streamText } from 'ai';
const result = streamText({
model: 'moonshotai/kimi-k3',
prompt: 'Find Browserbase\'s latest announcement, fetch the page, and summarize it.',
tools: {
browserbase_search: gateway.tools.browserbaseSearch({ numResults: 3 }),
browserbase_fetch: gateway.tools.browserbaseFetch({
allowRedirects: true,
}),
},
});
For pricing and configuration options, see the Browserbase Search and Fetch documentation.
Try the Browserbase tools in the AI Gateway model playground, or explore the model catalog.
AI Gateway provides one API for calling models, tracking usage and cost, and configuring routing, retries, and failover. You can use an AI Gateway API key or bring your own provider key.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

