vercel/v0-sdk

SDK for the v0 Platform API

What it solves

It provides a standardized way for developers to integrate v0's generative UI capabilities into their own applications using TypeScript. It simplifies the process of creating chats, managing streaming responses, and handling authentication with the v0 API.

How it works

The SDK is generated from the v0 API OpenAPI schema. It offers a core TypeScript package for API interactions and a dedicated React package that provides AI SDK transport and SWR hooks for browser-based clients. It supports both synchronous and streaming chat creation and integrates with Vercel OIDC authentication.

Who it’s for

TypeScript and React developers who want to programmatically interact with v0 to generate UI components or websites via an API.

Highlights

  • Core TypeScript SDK for the v0 API
  • Support for streaming responses via readV0Stream
  • Dedicated React hooks and transport for browser clients
  • Integration with Vercel OIDC authentication

Related

  • Project
  • Project
  • Project
  • Project
  • Project