Vercel AI SDK
An open source library for building AI-powered user interfaces.
Serverless & Edge-ready
Build AI-powered apps that are fast across Node.js, Serverless, and Vercel Edge Functions.
First-class support for LangChain, OpenAI, Anthropic, and Hugging Face.
Streaming UI Helpers
SWR-powered React, Svelte, and Vue helpers for fetching and rendering streaming text responses.
Stream Lifecycle Callbacks
Callbacks for saving completed streaming responses to a database in the same request.
You can also clone or deploy a Vercel AI SDK starter repository to get a head start on your AI journey. For even more examples and starters, see the Vercel AI SDK examples directory on GitHub (opens in a new tab).
Next.js AI Chatbot
Full-featured AI chatbot built with Next.js (opens in a new tab), shadcn/ui (opens in a new tab), NextAuth.js (opens in a new tab), Vercel AI SDK (opens in a new tab), and Vercel KV (opens in a new tab)
Next.js OpenAI Starter
SvelteKit OpenAI Starter
Nuxt OpenAI Starter
Next.js Hugging Face Starter
Next.js LangChain Starter