{"schemaVersion":1,"id":"github-com-vercel-ai","name":"AI SDK","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/github-com-vercel-ai/","officialUrl":"https://github.com/vercel/ai","isCatalog":false,"description":"A Vercel TypeScript SDK for text and structured data generation, tool calls, agents, and streaming AI interfaces with different model providers.","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."],"categoryIds":["integrations","ai"],"subcategoryIds":["integrations.sdk","ai.orchestration"],"tags":["AI SDK","vercel","Developer tools"],"aliases":["vercel/ai"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"You can use the code under the stated license; servers, APIs, and compute must be provided separately.","paidUsage":"Model APIs, AI Gateway, and hosting are billed separately; Apache-2.0 applies to the SDK.","license":"Apache-2.0 for this repository; connected services, models, and data have separate terms.","selectionGuide":{"purpose":"Connect a provider and start with a short request or streamText in a server route.","chooseWhen":["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."],"considerInstead":[],"requirements":["Choose gateway or direct provider credentials and install the package for your UI framework."],"limitations":["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."],"faq":[{"question":"What can you use for free in AI SDK?","answer":"You can use the code under the stated license; servers, APIs, and compute must be provided separately."},{"question":"What additional costs might arise with AI SDK?","answer":"Model APIs, AI Gateway, and hosting are billed separately; Apache-2.0 applies to the SDK."},{"question":"What terms of use matter for AI SDK?","answer":"Apache-2.0 for this repository; connected services, models, and data have separate terms."},{"question":"How do you get started with AI SDK?","answer":"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."},{"question":"Does AI SDK require Vercel hosting or support direct provider connections?","answer":"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."}],"related":[],"sources":["https://github.com/vercel/ai","https://raw.githubusercontent.com/vercel/ai/main/README.md","https://raw.githubusercontent.com/vercel/ai/main/LICENSE","https://ai-sdk.dev/docs/introduction","https://raw.githubusercontent.com/vercel/ai/main/packages/ai/README.md"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"A Vercel TypeScript SDK for text and structured data generation, tool calls, agents, and streaming AI interfaces with different model providers.","inputs":["A TypeScript project, a model provider, and an input data schema."],"steps":["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."],"checks":["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."]},"sources":["https://github.com/vercel/ai","https://raw.githubusercontent.com/vercel/ai/main/README.md","https://raw.githubusercontent.com/vercel/ai/main/LICENSE","https://ai-sdk.dev/docs/introduction","https://raw.githubusercontent.com/vercel/ai/main/packages/ai/README.md"],"checkedAt":"2026-10-06","reviewScope":"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.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"SDK and development tools","kind":"library","pricingNote":"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.","notes":null,"labeledSources":[{"url":"https://github.com/vercel/ai","label":"Official repository"},{"url":"https://raw.githubusercontent.com/vercel/ai/main/README.md","label":"Documentation"},{"url":"https://raw.githubusercontent.com/vercel/ai/main/LICENSE","label":"License"},{"url":"https://ai-sdk.dev/docs/introduction","label":"Documentation"},{"url":"https://raw.githubusercontent.com/vercel/ai/main/packages/ai/README.md","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"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.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}