Skip to main content
Use Parallel Search in the Vercel AI SDK. Get started quickly by installing Parallel in the Vercel Agent Marketplace.

Vercel AI SDK

Easily drop in Parallel Search API or Extract API with any Vercel AI SDK compatible model provider.
  • Search API: Given a semantic search objective and optional keywords, Parallel returns ranked URLs with compressed excerpts
  • Extract API: Given a URL and an optional objective, Parallel returns compressed excerpts or full page contents
Links:

Sample Code

Parallel search and extract tools can be used with any Vercel AI SDK compatible model provider.
import { openai } from '@ai-sdk/openai';
import { streamText, type Tool } from 'ai';
import { searchTool } from '@parallel-web/ai-sdk-tools';

const result = streamText({
  model: openai('gpt-5'), // or any tool-calling model of your choice
  messages: [
    { role: 'user', content: 'What are the latest developments in AI?' }
  ],
  tools: {
    'web-search': searchTool as Tool,
  },
  toolChoice: 'auto',
});

// Stream the response
return result.toDataStreamResponse();
I