Parallel Search
index.ts
import { gateway, generateText } from 'ai';
const result = await generateText({ model: 'openai/gpt-5-nano', prompt: 'What are the latest developments in AI?', tools: { parallel_search: gateway.tools.parallelSearch(), },});
console.log(result.text);Playground
Try out Parallel Search by Parallel AI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Ask a question and GLM 5.2 will use Parallel Search to find current information and answer with cited sources.
Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
More search tools
| Tool |
|---|