网页
综合
更新时间 2026-11-13 17:05:55
AI SDK by Vercel | AI SDK
自动蜘蛛
ai-sdk.dev
正文约 1639 字
The AI SDK is the TypeScript toolkit designed to help developers build AI-powered applications and agents with React, Next.js, Vue, Svelte, Node.js, and more.
Integrating large language models (LLMs) into applications is complicated and heavily dependent on the specific model provider you use.
The AI SDK standardizes integrating artificial intelligence (AI) models across supported providers. This enables developers to focus on building great AI applications, not waste time on technical details.
The AI SDK also includes a harness abstraction for using established agent harnesses such as Claude Code, Codex, and Pi through HarnessAgent. Harnesses are decoupled from model providers, but use compatible stream and response primitives so AI SDK UI and agent surfaces can consume them in the same way.
For example, here’s how you can generate text with various models using the AI SDK:
The AI SDK has these primary surfaces:
The AI SDK supports multiple model providers.
We've built some templates that include AI SDK integrations for different use cases, providers, and frameworks. You can use these templates to get started with your AI-powered application.
If you have questions about anything related to the AI SDK, you're always welcome to ask our community on the Vercel Community.
You can access the entire AI SDK documentation in Markdown format at ai-sdk.dev/llms.txt. This can be used to ask any LLM (assuming it has a big enough context window) questions about the AI SDK based on the most up-to-date documentation.
For instance, to prompt an LLM with questions about the AI SDK:
Deliver AI experiences globally with one push.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。