Prototype a typed chat UI.

Vercel AI SDK
Build TypeScript AI interfaces and agent integrations with Vercel AI SDK, matching SDK versions and provider capabilities while budgeting inference separately.
未翻訳のため、原文を表示しています。
- 料金体系
- 無料プランあり
- プラン
- AI SDK · USD 0.00 one-time · Per software project 出典 2026-10-26
- 制限
- No SDK license fee. 出典 2026-10-26
利用シーン
Compare provider adapters for a task.
Review a harness integration boundary.
製品スクリーンショットAI SDK code example1枚を見る
製品概要とその他の利用例
Product overview
AI SDK is a TypeScript toolkit with Core APIs for text, structured objects and tools, UI helpers for chat, and a Harness abstraction for supported agent harnesses. It integrates with multiple frontend/runtime stacks and providers. A shared API shape does not guarantee every provider or harness supports identical behavior.
機能、モデル、連携
Generate text and structured outputs.
Define model tools and agents.
Build streaming chat interfaces.
Integrate supported agent harnesses.
The current repository license is Apache 2.0. Model providers, optional gateways, harness subscriptions and deployment infrastructure have separate terms. Choose documentation for the installed SDK generation and check provider-specific tools, streaming and structured-output support. A browser UI should not expose provider credentials. Review server authorization, input/output validation, tool side effects and stream persistence. The toolkit does not automatically provide production access control, unlimited models or factual correctness.
利用方法と連携
Choose SDK surfaces
Match package versions and the required runtime/UI.
Configure server-side access
Keep credentials server-side and scope model/tool access.
Inspect output and usage
Test streaming, errors and separate provider charges.
料金と利用条件
AI SDK
USD 0 One-time · Per software project
No SDK license fee.
Open-source TypeScript toolkit; provider and hosting usage are separate.
AI Gateway free tier
USD 0 / month · Per Vercel team
Free credits start with first request; BYOK unavailable.
USD 5 monthly credit for a subset of models with lower rate limits.
全プランと課金ルールを比較
No SDK license fee.
- ✓ Open-source TypeScript toolkit; provider and hosting usage are separate.
- ✓ Model-provider and deployment charges may apply.
Free credits start with first request; BYOK unavailable.
- ✓ USD 5 monthly credit for a subset of models with lower rate limits.
- ✓ Provider list rates apply against the credit.
Pay as you go; no commitment.
- ✓ Pay provider list price with zero token markup and no platform fee.
- ✓ Optional reporting, allowlist, ZDR and traces add metered charges.
Disabled by default.
- ✓ Optional add-on.
- ✓ Writes cost USD 0.075 per 1,000 identifiers.
主なプラン特典の比較
| Allowance | AI SDK | AI Gateway free tier | AI Gateway paid tier | Custom Reporting queries |
|---|---|---|---|---|
| Billing unit | Per software project | Per Vercel team | Provider tokens through purchased credits | Per 1,000 reporting queries |
| Included allowance | Open-source TypeScript toolkit; provider and hosting usage are separate. | USD 5 monthly credit for a subset of models with lower rate limits. | Pay provider list price with zero token markup and no platform fee. | Optional add-on. |
| Additional charges | Model-provider and deployment charges may apply. | Provider list rates apply against the credit. | Optional reporting, allowlist, ZDR and traces add metered charges. | Writes cost USD 0.075 per 1,000 identifiers. |
利用条件
- Platforms
- ローカルインストール, API
その他の利用条件
- Installation
- The AI SDK installs into TypeScript applications; it is not a model runtime.
資料と出典
よくある質問
Does the SDK require Vercel hosting?
The docs list multiple frontend and runtime stacks.
Are provider features identical?
No. Check the selected adapter and model.
Does the license include model credits?
No. Provider/service terms are separate.
製品の基本情報
- Product type
- TypeScript AI application toolkit
- Where to start
- Code project using Core, UI or Harness APIs
- Cost
- Apache 2.0 code; provider/hosting fees separate
- Chinese readiness
- Test Chinese streaming and schema outputs
- Main condition
- Match SDK generation and provider features
- Official site
- https://ai-sdk.dev/ ↗
- Identifiers
- Slug vercel-ai-sdk · Product ID 97bfac48-8b95-45c2-9a03-a06507685161
既存の資料とガイド
製品概要と利用例
Our selection advice
Start with one provider and a synthetic read-only conversation, then validate streaming and authorization before adding tools.
Billing notes
AI SDK
Billing unit: Per software project Allowance: Open-source TypeScript toolkit; provider and hosting usage are separate. Extra fees: Model-provider and deployment charges may apply. Conditions: No SDK license fee.
AI Gateway free tier
Billing unit: Per Vercel team Allowance: USD 5 monthly credit for a subset of models with lower rate limits. Extra fees: Provider list rates apply against the credit. Conditions: Free credits start with first request; BYOK unavailable.
AI Gateway paid tier
Billing unit: Provider tokens through purchased credits Allowance: Pay provider list price with zero token markup and no platform fee. Extra fees: Optional reporting, allowlist, ZDR and traces add metered charges. Conditions: Pay as you go; no commitment.
Custom Reporting queries
Billing unit: Per 1,000 reporting queries Allowance: Optional add-on. Extra fees: Writes cost USD 0.075 per 1,000 identifiers. Conditions: Disabled by default.
AI SDK
USD 0 · Per software project · Open-source TypeScript toolkit; provider and hosting usage are separate. · Model-provider and deployment charges may apply. · No SDK license fee.
AI Gateway free tier
USD 0 · Per Vercel team · USD 5 monthly credit for a subset of models with lower rate limits. · Provider list rates apply against the credit. · Free credits start with first request; BYOK unavailable.
AI Gateway paid tier
Provider tokens through purchased credits · Pay provider list price with zero token markup and no platform fee. · Optional reporting, allowlist, ZDR and traces add metered charges. · Pay as you go; no commitment.
Custom Reporting queries
USD 5 · Per 1,000 reporting queries · Optional add-on. · Writes cost USD 0.075 per 1,000 identifiers. · Disabled by default.
Updates, relationships and reviews
Official usage resources checked in this batch. Independent user reviews are still pending verification; no overall sentiment rating is assigned.
Questions and guides
Vercel AI SDK current Core, UI and Harness surfaces
Official reference for the workflow and its conditions.
Specify a fictional streaming chat
Design a read-only chat around synthetic notes, with server-side model access and an explicit error state for interrupted streams.
Check credentials, access, streaming completion and provider usage.
Editorial example; no application, account or model call was executed.