Jump to content

Draft:AI SDK

From Wikipedia, the free encyclopedia
  • Comment: GitHub is not a reliable source. Caleb Stanford (talk) 16:07, 24 August 2025 (UTC)


AI SDK
Developer(s)Vercel and the open-source community.[1]
Initial releaseJune 15, 2023; 2 years ago (2023-06-15)[2]
Stable release
5.0 / July 31, 2025; 50 days ago (2025-07-31)[3]
Written inTypeScript, JavaScript
TypeSoftware framework for large language model application development

AI SDK is an open-source TypeScript toolkit created by Vercel for building applications powered by large language models (LLM). It provides a unified API to interact with multiple AI providers and offers utilities for rendering chat interfaces and generative UIs in web applications.

AI SDK was released by Vercel on June 15, 2023[2]. It is designed to support both frontend and backend environments using JavaScript and TypeScript. It enables developers to build streaming chat UIs, structured AI outputs, and tool-using agents across different AI model providers including OpenAI, Anthropic, Google, Hugging Face, and xAI.[4]

The AI SDK is built to integrate with frameworks such as Next.js, React, Vue, and Svelte. It includes support for real-time streaming, typed JSON responses, tool calling, image generation, and multimodal interaction.

Features

[edit]
  • Unified APIs for generateText, streamText, generateObject, streamObject
  • UI hooks for chat state (e.g. useChat, useCompletion)
  • JSON schema validation via Zod
  • Model abstraction layer with pluggable providers
  • Support for structured outputs, image generation, and function calling
  • Compatible with Vercel AI Gateway, which enables provider switching and central billing[5]

Development history

[edit]

The AI SDK project is maintained by Vercel and the open-source community. Core contributors listed on GitHub include Lars Grammel, Max Leiter, Shu Ding, Jeremy Danyow, Nico Martin, and Jared Palmer[6]

  • Version 1.0 was introduced in June 2023 with streaming support and unified model APIs.[2]
  • Version 3.0 added support for rendering LLM outputs as React Server Components.
  • Version 4.0 (November 2024) introduced PDF summarization, long-form generation, and integration with xAI’s Grok.[7]
  • Version 5.0 (July 2025) added type-safe chat interfaces, agentic control loops, and framework-agnostic streaming tools.[3]

Enterprise adoption

[edit]

In June 2025, WPP, the world’s largest advertising group, announced an expanded partnership with Vercel to integrate its AI tools, including the AI SDK, across WPP’s global network. The partnership was described as a way to speed up UI generation and improve developer efficiency by up to 25 percent.[8]

The SDK has also been adopted by Upstash, a serverless data platform, which has documented production use cases combining its Redis and Vector database services with the Vercel AI SDK for caching, rate limiting and semantic search.[9]

Open-source adoption

[edit]

Beyond enterprise adoption, the AI SDK has seen widespread uptake in the open-source community. GitHub lists more than 80,000 dependent repositories, including projects maintained by major technology companies. Examples include Microsoft ([10], [11]), Intel ([12]), Red Hat ([13]), GitHub ([14]) and Elastic ([15]). Other industry players with public repositories depending on the SDK include Sentry ([16]), Algolia ([17]), SST ([18]), Commercetools ([19]), and Prisma ([20]).

See also

[edit]

References

[edit]
  1. ^ "vercel/ai". GitHub. Retrieved 2025-08-14.
  2. ^ a b c "Introducing the Vercel AI SDK". Vercel. 15 June 2023. Retrieved 2025-08-14.
  3. ^ a b "AI SDK 5". Vercel. 31 July 2025. Retrieved 2025-08-14.
  4. ^ "AI SDK Providers". AI SDK.
  5. ^ "Introducing the AI Gateway". Vercel.
  6. ^ "AI SDK Contributors". GitHub. Retrieved 2025-08-14.
  7. ^ "AI SDK 4.0". Vercel. 18 November 2024. Retrieved 2025-08-14.
  8. ^ "WPP and Vercel expand partnership to accelerate AI-powered digital experience" (Press release). WPP. 24 June 2025.
  9. ^ "AI SDK Powered by Upstash". Upstash Blog. July 2024.
  10. ^ "Microsoft poml". GitHub.
  11. ^ "Microsoft Agents". GitHub.
  12. ^ "Intel AI-Playground". GitHub.
  13. ^ "Red Hat 8lens". GitHub.
  14. ^ "GitHub models-ai-sdk". GitHub.
  15. ^ "Elastic Kibana". GitHub.
  16. ^ "Sentry vitest-evals". GitHub.
  17. ^ "Algolia generative-relevance". GitHub.
  18. ^ "SST Opencode". GitHub.
  19. ^ "Commercetools MCP Server Template". GitHub.
  20. ^ "Prisma Examples – AI SDK with Next.js". GitHub.
[edit]

Category:AI software Category:JavaScript web frameworks Category:Large language models