AI providers plug directly into Vercel projects

Vercel has launched nine new AI integrations from leading model providers, plus an in-dashboard model playground for trying models that generate text, images, and audio. The integrations are accessible from a new AI tab in the Vercel dashboard, where developers can browse, preview, and connect providers to their projects.

Explore and play with the popular AI models from various providers.

The initial partner cohort includes Replicate and other model providers. Replicate engineer Charlie Holtz said the company is "excited to partner with Vercel on bringing the latest state of the art open source machine learning models to more AI Engineers," adding that "AI should be easy to run and integrate into any web application."

Our first cohort of AI Integration partners, now available in the AI tab.

A single SDK for any model provider

Once a provider is connected, the Vercel AI SDK provides a uniform interface for working with models across providers—text, image, and audio. The SDK acts like an ORM for any AI model you want to use, and pairs with the Next.js App Router for streaming responses to the frontend.

Using the Perplexity API in a Next.js route handler, for example, requires only the following code to stream responses back to the client:

app/api/chat/route.ts

import { OpenAIStream, StreamingTextResponse } from 'ai';

import OpenAI from 'openai';

const perplexity = new OpenAI({

apiKey: process.env.PERPLEXITY_API_KEY || '',

baseUrl: 'https://api.perplexity.ai',

});

export async function POST(req: Request) {

const { messages } = await req.json();

// Generated a chat completion based on the prompt

const response = await perplexity.chat.completions.create({

model: 'pplx-7b-chat',

stream: true,

messages: messages,

});

// Convert the response into a friendly text-stream

const stream = OpenAIStream(response);

// Respond with the stream

return new StreamingTextResponse(stream);

}

Building and joining the ecosystem

Beyond the nine launch partners, Vercel's AI Integrations are an open platform: AI companies and developers can create their own integrations using the same tooling. The playground and AI tab are available now in the Vercel dashboard.