AI SDK
banner
sdk.vercel.ai
AI SDK
@sdk.vercel.ai
The AI Toolkit for TypeScript.
Pinned
AI SDK 4.2

Introducing MCP clients, reasoning, sources and more.
We're excited to give you an early look at AI SDK 6, available in beta today.
October 23, 2025 at 5:05 PM
Trim context with pruneMessages: remove intermediate reasoning, tool calls, and empty messages.
October 20, 2025 at 10:21 PM
Use Claude Skills with the AI SDK.
October 19, 2025 at 2:24 AM
Use Haiku 4.5 with AI SDK and Vercel AI Gateway.
October 15, 2025 at 5:14 PM
Use Anthropic's latest code execution tool.
October 14, 2025 at 10:23 PM
Need to migrate from AI SDK 4 to 5?

The migration MCP server generates a complete checklist and references the official guide for each change as it migrates your project automatically.
October 14, 2025 at 4:32 PM
Need to migrate your data from AI SDK 4 to 5?

Learn how to get your app working first with a runtime conversion layer, then migrate your database at your own pace.
October 10, 2025 at 1:50 PM
Use OpenAI's latest models: gpt-5-pro and gpt-image-1-mini.
October 7, 2025 at 10:06 AM
You can now use Hugging Face with the AI SDK.
September 30, 2025 at 5:25 PM
Use gpt-5-codex with the new local shell tool.
September 30, 2025 at 2:10 PM
Use Sonnet 4.5 with AI SDK and Vercel AI Gateway.
September 29, 2025 at 6:14 PM
Search the web and fetch web pages with Anthropic.
September 26, 2025 at 3:37 PM
Use OpenAI's built-in file search tool.
September 18, 2025 at 2:23 PM
Use OpenAI's built-in image generation tool.
September 17, 2025 at 10:15 AM
Use OpenAI's built-in code interpreter tool.
September 16, 2025 at 1:52 PM
Use OpenAI's built-in web search tool.
September 15, 2025 at 10:01 AM
Learn how to generate and edit images with Gemini 2.5 Flash Image.
September 12, 2025 at 3:18 PM
Learn how to integrate AI SDK with your preferred API server - examples for Express, Fastify, Hono, and more.
September 9, 2025 at 3:15 PM
In AI SDK 5, the OpenAI provider defaults to the Responses API. The Completions API remains available and fully supported.
September 5, 2025 at 4:14 PM
Chat SDK is now powered by AI SDK 5, Vercel AI Gateway, and AI Elements.
September 4, 2025 at 3:12 PM
AI Elements is now open-source.
September 4, 2025 at 10:06 AM
useChat onFinish now includes isAbort, isDisconnect, and isError flags.
September 3, 2025 at 1:52 PM
Customize warning handling with the new global logger - disable warnings completely or provide your own handler function.
September 2, 2025 at 3:33 PM
Override the default file download function with custom logic for authentication, retries, and caching.
September 1, 2025 at 10:20 AM
Learn how to build a chatbot with resumable streams.
ai-sdk.dev/docs/ai-sdk...
Chatbot Resume Streams
Learn how to resume chatbot streams after client disconnects.
ai-sdk.dev
August 29, 2025 at 3:27 PM