The AI layer for building frameworks and agents on Vercel
A unified TypeScript SDK for building AI apps with modern streaming, multi-model, and provider-agnostic capabilities
npm i ai
import { generateText } from 'ai';
const { text } = await generateText({ model: 'openai/gpt-5.5', prompt: 'Explain the concept of quantum entanglement.',});
console.log(text);The Framework Agnostic AI Toolkit
The open-source AI toolkit designed to help developers build AI-powered applications and agents with React, Next.js, Vue, Svelte, Node.js, and more.
Reliable production behavior by default.
import { generateText } from 'ai';
const { text } = await generateText({ model: 'openai/gpt-5.5', prompt: 'Explain the concept of quantum entanglement.',});
console.log(text);Supports
Scale with confidence
Plug the AI SDK into an entire ecosystem designed for the way modern AI applications that scale.
Workflows New
Build long running AI agents and apps that can suspend, resume, and survive function timeouts.
npm i workflow
AI Elements
A UI component library and custom registry built to build AI-native applications faster.
npx ai-elements
Build with the 
today
Get started with the AI SDK by using our cookbooks or templates.
npm i ai
Chatbot Starter Template
Learn how to build a full-featured AI chatbot with persistence, multi-modal chat, and more.
Copy install prompt
Build a Slackbot Agent
Learn how to build a Slackbot that responds to direct messages and mentions in channels.
Copy install prompt
Build a SQL Agent
Learn how to build an app that interacts with a PostgreSQL database using natural language.
Copy install prompt