← All frameworks

Vercel AI SDK

The TypeScript way to build streaming AI apps.

Vendor SDK

The AI SDK is built for the web. Streaming text to a React component, tool calls, structured output and generative UI are the first class ideas, and it works the same in Next.js, Svelte and Vue.

Reach for it when

  • Your app is TypeScript and the agent lives in the product
  • You want streaming UI without writing the plumbing
  • You are deploying to the edge

Look elsewhere when

  • Your stack is Python
  • You need long running agent loops on a server

What the lessons will cover

  1. 01Install and setup
  2. 02generateText and streamText
  3. 03Tools
  4. 04Structured output
  5. 05useChat in React
  6. 06Generative UI
  7. 07Agents and loops
  8. 08Deploying

Others in vendor sdk

Common questions

Is Vercel AI SDK free to use?

Vercel AI SDK is open source and free to run yourself. You still pay whichever model provider you point it at, and this tutorial is free with no signup.

Do I need to know Python to use Vercel AI SDK?

No. Vercel AI SDK is a TypeScript library, so JavaScript or TypeScript is what you need.

When should I not use Vercel AI SDK?

Your stack is Python. You need long running agent loops on a server.

Lessons for Vercel AI SDK are being written. Meanwhile the LangGraph tutorial covers the same ground: state, tools, loops, memory and human approval. Most of it carries straight over.

Start the LangGraph tutorial →