Vercel AI SDK is a TypeScript toolkit for building AI-powered web applications with streaming chat interfaces, generative UI, and tool calling. It provides React hooks and server functions that handle the complexity of streaming LLM responses to the browser.
Key use cases include:
The Vercel AI SDK is used by frontend and full-stack developers building AI-native web applications. It is the standard way to add AI to Next.js apps and provides the best developer experience for streaming UI patterns.
The SDK includes AI SDK Core (provider-agnostic LLM calls), AI SDK UI (React/Vue/Svelte hooks), and AI SDK RSC (React Server Components integration).
npm install ai @ai-sdk/openai.env.local:OPENAI_API_KEY=sk-...app/api/chat/route.ts):import { openai } from '@ai-sdk/openai'
import { streamText } from 'ai'
export async function POST(req: Request) {
const { messages } = await req.json()
const result = streamText({
model: openai('gpt-4o'),
messages
})
return result.toDataStreamResponse()
}useChat hook in your component:import { useChat } from 'ai/react'
export default function Chat() {
const { messages, input, handleSubmit, handleInputChange } = useChat()
}Pricing: The AI SDK is free and open source (Apache 2.0). Deploying on Vercel has its own pricing tiers. You pay only for LLM API calls.
Case studies
B2B market research SaaS
A market research SaaS needed to add a conversational AI interface supporting streaming responses, tool calls (web search, chart generation, data queries), and session history — estimated at 2 weeks of work.
Built the complete chat interface using Vercel AI SDK's useChat hook with streaming, tool call rendering, and optimistic UI. SDK abstracted the Claude API integration, streaming state, and error handling into a few hundred lines.
Production-ready streaming chat with tool use shipped in 4 hours. Feature drove 34% increase in daily active users within 2 weeks of launch. NPS improved from 41 to 67.
Used Vercel AI SDK professionally?
Add your case study and get discovered by clients.
Submit a case studyThought leaders
Follow for insights, tutorials, and thought leadership
Latent Space / Smol AI
Editor of Latent Space, the leading AI engineering newsletter and podcast. Popularized the term 'AI Engineer.' Previously led developer tooling at AWS, Two Sigma, and three devtool unicorns (Netlify, Temporal, Airbyte). Former currency options trader. Curates the AI Engineer Summit, the top conference for AI Engineers. Founded Smol AI for LLM data pipelines.
Vercel
Founder and CEO of Vercel, the platform behind Next.js. Created Socket.io. Under his leadership, Vercel launched the AI SDK and v0.dev, making AI a first-class citizen in web development. v0 became one of Vercel's fastest-growing products.
Vercel
VP of AI at Vercel, leading development of the Vercel AI SDK. Previously created Formik and TSDX. Architected the AI SDK for building streaming AI applications with React Server Components.
T3 Chat (Ping.gg)
Creator of the T3 Stack (Next.js + tRPC + Tailwind + Prisma) and CEO of T3 Chat, a YC-backed AI chat application. Former software engineer at Twitch. YouTube channel with 500k+ subscribers covering software development and AI tools. Investor in Cursor. Known for rapid prototyping demonstrations using Cursor and modern AI tools.
Vercel
Created Next.js and Socket.io. Built v0, Vercel's AI-powered text-to-app generator that won a 2025 Webby Award. On a mission to expand the pool of builders from 5M developers to 100M people. Started coding at age 10 in Argentina.
Submit a brief and we'll match you with vetted specialists who have proven Vercel AI SDK experience.