# AI SDK

[BASE product page](<https://base.akulich.dev/en/library/github-com-vercel-ai/>) · [Resource](<https://github.com/vercel/ai>)

ID: github\-com\-vercel\-ai · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A Vercel TypeScript SDK for text and structured data generation, tool calls, agents, and streaming AI interfaces with different model providers\.

## Type

SDK and development tools

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

## [Paid features and costs](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-access>)

Model APIs, AI Gateway, and hosting are billed separately; Apache\-2\.0 applies to the SDK\.

## [Access and limitations](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-access>)

You can use the code under the stated license; servers, APIs, and compute must be provided separately\. Model APIs, AI Gateway, and hosting are billed separately; Apache\-2\.0 applies to the SDK\.

## [Use cases](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-tasks>)

- Connect a provider and start with a short request or streamText in a server route\.
- Define tool and output schemas, add UI streaming, and handle failures\.

## Category IDs

- integrations
- ai

## Subcategory IDs

- integrations\.sdk
- ai\.orchestration

## Tags

- AI SDK
- vercel
- Developer tools

## Also known as

- vercel/ai

## [Selection purpose](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-selection>)

Connect a provider and start with a short request or streamText in a server route\.

## [Choose this when](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-selection>)

- Connect a provider and start with a short request or streamText in a server route\.
- Define tool and output schemas, add UI streaming, and handle failures\.

## [Requirements](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-selection>)

- Choose gateway or direct provider credentials and install the package for your UI framework\.

## [Limitations](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-selection>)

- Costs and limits of free use: Model APIs, AI Gateway, and hosting are billed separately; Apache\-2\.0 applies to the SDK\.
- Terms of use: Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.
- The SDK does not include free inference; the model provider, gateway, and hosting have their own terms\.

## [Questions before use](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-faq>)

### What can you use for free in AI SDK?

You can use the code under the stated license; servers, APIs, and compute must be provided separately\.

### What additional costs might arise with AI SDK?

Model APIs, AI Gateway, and hosting are billed separately; Apache\-2\.0 applies to the SDK\.

### What terms of use matter for AI SDK?

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

### How do you get started with AI SDK?

Connect a provider and start with a short request or streamText in a server route\. Define tool and output schemas, add UI streaming, and handle failures\. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

### Does AI SDK require Vercel hosting or support direct provider connections?

The provider\-agnostic TypeScript toolkit supports generation, structured Output/schema, tools/agents, and UI streaming\. A model string uses Vercel AI Gateway by default; provider packages enable direct connections\. AI SDK UI has a separate framework package, such as @ai\-sdk/react\. Current README installation instructions require Node\.js 22\+ on the development machine\.

## Sources for the selection guide

- [https://github\.com/vercel/ai](<https://github.com/vercel/ai>)
- [https://raw\.githubusercontent\.com/vercel/ai/main/README\.md](<https://raw.githubusercontent.com/vercel/ai/main/README.md>)
- [https://raw\.githubusercontent\.com/vercel/ai/main/LICENSE](<https://raw.githubusercontent.com/vercel/ai/main/LICENSE>)
- [https://ai\-sdk\.dev/docs/introduction](<https://ai-sdk.dev/docs/introduction>)
- [https://raw\.githubusercontent\.com/vercel/ai/main/packages/ai/README\.md](<https://raw.githubusercontent.com/vercel/ai/main/packages/ai/README.md>)

## [Possible workflow](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-scenario>)

A Vercel TypeScript SDK for text and structured data generation, tool calls, agents, and streaming AI interfaces with different model providers\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A TypeScript project, a model provider, and an input data schema\.

## Steps

1. Connect a provider and start with a short request or streamText in a server route\.
2. Define tool and output schemas, add UI streaming, and handle failures\.
3. Compare the result with the workflow's goal; after changing the project, run its standard checks\.

## Check your result

- The response structure is validated; errors, cancellation, and the token limit are handled\.
- Check connection permissions and dependency terms; confirm external service costs if the workflow requires them\.

## [License](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-license>)

Apache\-2\.0 for this repository; connected services, models, and data have separate terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

## [Sources](<https://base.akulich.dev/en/library/github-com-vercel-ai/#resource-sources>)

- [Official repository](<https://github.com/vercel/ai>)
- [Documentation](<https://raw.githubusercontent.com/vercel/ai/main/README.md>)
- [License](<https://raw.githubusercontent.com/vercel/ai/main/LICENSE>)
- [Documentation](<https://ai-sdk.dev/docs/introduction>)
- [Official source](<https://raw.githubusercontent.com/vercel/ai/main/packages/ai/README.md>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The README and license were reviewed against public primary sources on 2026\-10\-06\. The code was not installed or run; applicability depends on the project and client versions\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
