AI SDK
@aisdk
The Open Source AI Toolkit for TypeScript. Built by @Vercel.
AI SDK 5 is now in Beta! We redesigned the AI SDK to create a next-generation AI framework: • Create type-safe, flexible chats with React, Svelte, Vue • Build agents with prepareStep, stopWhen, and provider-executed tools • Rely on an updated, robust language model spec

Updated our @aisdk persistence template It's now built with all the v5 goodies (data parts, custom UIMessages etc.) and has moved to a new prefix-based persistence pattern
Build a coding agent like Claude Code in 40 minutes with @aisdk, AI Gateway, Sandbox, and Vercel Functions. See how in @nicoalbanese10's Vercel Ship workshop.
Grok 4 live on @aisdk + @vercel AI Gateway 𝚒𝚖𝚙𝚘𝚛𝚝 { 𝚐𝚎𝚗𝚎𝚛𝚊𝚝𝚎𝚃𝚎𝚡𝚝 } 𝚏𝚛𝚘𝚖 '𝚊𝚒' 𝚌𝚘𝚗𝚜𝚝 { 𝚝𝚎𝚡𝚝 } = 𝚊𝚠𝚊𝚒𝚝 𝚐𝚎𝚗𝚎𝚛𝚊𝚝𝚎𝚃𝚎𝚡𝚝({ 𝚖𝚘𝚍𝚎𝚕: '𝚡𝚊𝚒/𝚐𝚛𝚘𝚔-𝟺', 𝚙𝚛𝚘𝚖𝚙𝚝: 'T𝚑𝚎 𝚊𝚗𝚜𝚠𝚎𝚛 𝚝𝚘 𝚕𝚒𝚏𝚎' }) Easiest & fastest way…
My workshop from @vercel ship is now live! Build a coding agent like Claude Code with @aisdk 5, AI Gateway, Vercel Sandbox, and Vercel Functions in 40 minutes