Vercel AI SDK

Open source TypeScript library from Vercel (npm package `ai`, Apache-2.0) that calls any model through the same function: `generateText`, `streamText`, Zod-validated structured output, tool calls. One package per provider (`@ai-sdk/anthropic`, `@ai-sdk/openai`…) plugs into it, and the UI part ships `useChat` for React or Vue (a `Chat` class for Svelte).

Strengths

Limitations

Best for

Official site

View on Coeurdar