---
stable_id: skills/skills-sh-vercel-ai-ai-sdk
type: skills
title: skills-sh-vercel-ai-ai-sdk
summary: |-
  ---
  title: Common Errors
  description: Reference for common AI SDK errors and how to resolve them.
  ---
  # Common Errors
  ## `maxTokens` → `maxOutputTokens`
  ```typescript
  // ❌ Incorrect
  const result = await generateText({
    model: 'anthropic/claude-opus-4.5',
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/vercel/ai/HEAD/skills/use-ai-sdk/references/common-errors.md
license: ""
upstream_ref: https://skills.sh/vercel/ai/ai-sdk
github_stars: 22851
github_forks: 4028
github_is_organization: true
retrieved_at: 2026-06-11T08:33:21.208Z
content_sha256: 7dc881a7db69c68cdf13069e689c474fbde8b291f65baa6d853175fa14d12f48
---
