Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
Core Concepts
Reasoning
Memory & Retrieval
Agent Types
Design Patterns
Training & Alignment
Frameworks
Tools
Safety & Security
Evaluation
Meta
Vercel AI SDK is an open-source TypeScript toolkit for building AI-powered applications. It provides a unified API across providers like OpenAI, Anthropic, Google, and Mistral, with core functions for text and object generation, React/Next.js hooks, tool calling, and streaming support.1)
The AI SDK Core provides primitive functions for LLM interactions:2)
All functions use a unified API, requiring only provider/model swaps for portability.
Streaming is a first-class concern in the AI SDK:3)
The tool system enables AI models to execute functions and interact with external systems:4)
execute functionsgenerateText and streamTextThe SDK provides a unified interface across all major LLM providers:5)
AI SDK UI provides React hooks for interactive applications:6)
The SDK integrates directly with Next.js Server Actions:7)
generateObject for structured outputs, multi-step tool calling with maxSteps, useObject for streaming structured data, and provider middleware for logging and caching8)ai npm package reaches approximately 3.5 million weekly downloads as of March 2026