CreateWithAIHub

Framework Vercel

AI SDK (Vercel)

Vercel's provider-agnostic TypeScript toolkit for AI apps and agents, with UI hooks for React and other frameworks.

AI app toolkitFreeOpen source
Visit website ↗
Save

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
Install
npm install ai
Add skill for coding agents
npx skills add vercel/ai

Commands 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).

FreeOpen source

Open-source TypeScript/React library of composable primitives for building ChatGPT-style chat interfaces.

FreeOpen source

Open-source frontend stack for putting agents in front of users: chat, generative UI, shared state and human-in-the-loop.

FreeOpen source

MCP servers for this

Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.

Free plan + paidOpen source

Skills for this

Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.

FreeOpen source

Related resources

Fast hosted inference for open models, including LLMs and Whisper speech-to-text, through an OpenAI-compatible API.

Free plan + paid

Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.

FreeOpen source

AWS's managed service for calling 100+ foundation models from Anthropic, OpenAI, Meta, Mistral, DeepSeek, Amazon and others in your AWS account.

Paid

Type to search. Use ↑ ↓ and Enter.