Vercel AI SDK
Open SourceFrameworks & SDKs
The TypeScript toolkit for shipping AI-powered products.
What it’s for
The AI SDK provides one streaming interface to every major provider — OpenAI, Anthropic, Google, Mistral, Ollama and more — plus React hooks like useChat that make streaming UIs trivial. It has become the standard choice for AI features in web apps.
How to use it
npm install ai, call generateText or streamText on the server with any provider package, and render responses with useChat on the client. Structured output through Zod schemas and generative UI are built in.
Pricing
Free and open source (Apache 2.0). You only pay your model providers for usage.