Table of Contents

Vercel AI SDK

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)

Core Functions

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

Streaming is a first-class concern in the AI SDK:3)

Tool Calling

The tool system enables AI models to execute functions and interact with external systems:4)

Multi-Provider Support

The SDK provides a unified interface across all major LLM providers:5)

React and Next.js Integration

AI SDK UI provides React hooks for interactive applications:6)

Server Actions

The SDK integrates directly with Next.js Server Actions:7)

Recent Developments

See Also

References