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.
Traducción pendiente. Se muestra el texto original.
- Modelo de precios
- Plan gratuito
- Plan
- AI SDK · 0,00 USD one-time · Per software project Fuente 2026-10-26
- Límite
- No SDK license fee. Fuente 2026-10-26
Casos de uso
Compare provider adapters for a task.
Review a harness integration boundary.
Capturas del productoAI SDK code exampleVer 1
Descripción y más casos de uso
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.
Funciones, modelos y acceso
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.
Cómo usar o conectar
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.
Precios y requisitos
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.
Comparar todos los planes y reglas de facturación
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.
Comparar prestaciones
| 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. |
Requisitos de uso
- Platforms
- Instalación local, API
Más requisitos de uso
- Installation
- The AI SDK installs into TypeScript applications; it is not a model runtime.
Documentación y fuentes
Preguntas frecuentes
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.
Información del producto
- 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
Registros y guías originales
Descripción y casos de uso
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.