ai-sdk-core

Installation
Summary

Build backend AI with Vercel AI SDK v6, covering structured outputs, multi-modal capabilities, tools, and 15 error solutions.

  • Supports text generation, structured outputs (objects, arrays, choices), speech synthesis, transcription, embeddings, and image generation across 69+ providers (OpenAI, Anthropic, Google, Cloudflare)
  • Output API replaces deprecated generateObject/streamObject; use Output.object(), Output.array(), Output.choice() for type-safe structured data with Zod schemas
  • Includes tool calling with dynamic approval workflows, MCP tools with static generation for security, and agent abstraction via ToolLoopAgent class
  • Covers critical v4→v5 migration (parameter renames, tool definition changes, message structure updates) plus 15 common errors with workarounds (AI_APICallError, rate limiting, Gemini caching issues, Anthropic tool failures, stream resumption)
SKILL.md

AI SDK Core

Backend AI with Vercel AI SDK v5 and v6.

Installation:

npm install ai @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google zod

AI SDK 6 (Stable - January 2026)

Status: Stable Latest: ai@6.0.26 (Jan 2026)

BREAKING: Output API Replaces generateObject/streamObject

⚠️ CRITICAL: generateObject() and streamObject() are DEPRECATED and will be removed in a future version. Use the new Output API instead.

Related skills
Installs
485
GitHub Stars
776
First Seen
Jan 20, 2026