Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

LLM frameworksTypeScriptApache-2.0

vercel/ai

The Vercel AI SDK provides a unified provider interface, streaming helpers and React hooks for chat and generative UI. It is a practical choice for Next.js teams that want typed streaming and tool calling without reinventing the transport layer. The SDK is modular and provider-agnostic.

18.0k stars2.9k forks260 contributors220 open issuesUpdated

What it does

  • Unifies model providers behind a TypeScript API.
  • Handles streaming text, tool calls and structured output.
  • Provides React hooks and UI helpers.

Key features

  • Provider registry and model switching.
  • Streaming primitives for server and client.
  • Tool calling and generative UI helpers.
  • Framework integrations including Next.js.

How to install it

Commands are copied from the project documentation at the time of review. Check the repository for the current version.

npm
npm install ai @ai-sdk/openai

Alternatives to consider

ai is a strong default for llm frameworks, but the right choice depends on your stack, licence constraints and how much control you need. These are the projects we compare most often.

LangChain.jsMastraOpenAI SDK

Prompts that pair with it

All prompts →
Verified Knowledge · FAQ

ai FAQ

Adoption questions we hear most often about this project.

Related repositories

LLM frameworks · Python

A framework for composing LLM applications from models, tools, retrievers and memory.

118.0k19.2kMIT

LLM frameworks · Python

A framework for programming LLM pipelines and optimising prompts against a metric.

28.0k2.4kMIT

LLM frameworks · C#

Microsoft's SDK for integrating LLMs into C#, Python and Java applications.

26.0k4.1kMIT