# Perplexity Search API on Vercel AI Gateway

**URL:** <https://community.perplexity.ai/t/perplexity-search-api-on-vercel-ai-gateway/4743>\
**Category:** Announcements\
**Created:** [January 15, 2026, 6:00pm UTC](https://community.perplexity.ai/t/perplexity-search-api-on-vercel-ai-gateway/4743 "2026-01-15T18:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesku](https://sea1.discourse-cdn.com/flex001/user_avatar/community.perplexity.ai/kesku/32/898_2.png) [@Kesku](https://community.perplexity.ai/u/Kesku)\
**Post date:** [January 15, 2026, 6:00pm UTC](https://community.perplexity.ai/t/perplexity-search-api-on-vercel-ai-gateway/4743/1 "2026-01-15T18:00:00Z")

</div>

You can now use the Perplexity Search API to add real-time web search to any model from any provider via Vercel AI Gateway. No additional API keys required.

 ![img_vercel.jpg](https://us1.discourse-cdn.com/flex001/uploads/sonar1/original/2X/1/17300fc205b6eba59fcecaa2bdd8d56c469f071f.jpeg)

```typescript
import { gateway } from 'ai';

const result = await generateText({
  model: gateway('openai/gpt-4o'),
  tools: {
    perplexity_search: gateway.tools.perplexitySearch()
  },
  prompt: 'What are the latest AI developments?'
});

```

Read more: [Use Perplexity Web Search with Vercel AI Gateway](https://vercel.com/blog/use-perplexity-web-search-with-vercel-ai-gateway)
