ai-sdk-v6
Installation
SKILL.md
AI SDK v6
Overview
The AI SDK is the TypeScript toolkit for building AI-powered applications with React, Next.js, Vue, Svelte, Node.js, and more. It provides a unified API across multiple model providers (OpenAI, Anthropic, Google, etc.) and consists of:
- AI SDK Core: Unified API for text generation, structured data, tool calling, and agents
- AI SDK UI: Framework-agnostic hooks (
useChat,useCompletion,useObject) for chat interfaces
Quick Start
Installation
npm install ai @ai-sdk/openai # or @ai-sdk/anthropic, @ai-sdk/google, etc.