
Framework Vercel
AI SDK (Vercel)
Vercel's provider-agnostic TypeScript toolkit for AI apps and agents, with UI hooks for React and other frameworks.
What it is
The AI SDK is an open-source TypeScript library from Vercel for building AI features and agents. It gives one API for generating text and structured data, calling tools and running agent loops across many model providers, and UI integrations such as useChat for streaming chat interfaces. It works with Next.js, React, Svelte, Vue, Angular and Node.js, and suits web developers adding AI to apps.
What it's useful for
Adding a streaming chat UI to a Next.js app, extracting typed JSON from model output, or building a tool-calling agent that can switch providers.
Key features
- Unified API across providers such as OpenAI, Anthropic and Google
- Uses Vercel AI Gateway by default, or direct provider packages
- Text and structured data generation with tool calling
- ToolLoopAgent for agent loops
- UI integration (e.g. useChat) for React, Next.js and other frameworks
How to use it
Before you start
- Node.js 22+
- npm or another package manager
npm install ainpx skills add vercel/aiCommands are copied from the official documentation. Check the docs for the latest version before running them.
Alternatives
Google Firebase's open-source framework for full-stack AI apps in TypeScript, Go, Python (beta) and Dart (preview).
Open-source TypeScript/React library of composable primitives for building ChatGPT-style chat interfaces.
Open-source frontend stack for putting agents in front of users: chat, generative UI, shared state and human-in-the-loop.
MCP servers for this
Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.
Skills for this
Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.
Related resources
Vercel's open-source Next.js and AI SDK template for building a full chatbot app with auth and saved history.
Fast hosted inference for open models, including LLMs and Whisper speech-to-text, through an OpenAI-compatible API.
Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.
AWS's managed service for calling 100+ foundation models from Anthropic, OpenAI, Meta, Mistral, DeepSeek, Amazon and others in your AWS account.