Vercel v0 API TypeScript client: v0-api
v1.6.0Unofficial, fully typed TypeScript client for the Vercel v0 API, generated from its OpenAPI spec and published to npm as v0-api.
Not affiliated with or endorsed by v0.
Installation
npm install v0-apiAuthentication
Pass a v0 API key as the token option.
Examples
import { V0Api } from "v0-api";
const client = new V0Api({ token: process.env.V0_API_KEY ?? null });
const chats = await client.api.chats.chatsFind();const chats = await client.request("GET /chats");const client = new V0Api({
token: process.env.V0_API_KEY ?? null,
fetch: myFetchImplementation,
});