Browserbase 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.