Skip to main content
Vercel offers 3 models through Lava’s AI Gateway, supporting Chat Completions. Authentication uses Authorization: Bearer. See the Vercel API docs for provider-specific parameters.
Supports both managed API keys (from Lava) and BYOK mode.

Quick Start

const response = await fetch('https://api.lavapayments.com/v1/forward?u=https%3A%2F%2Fapi.v0.dev%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'v0-1.5-md',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});

Chat Completions

Target URL: https://api.v0.dev/v1/chat/completions
Content Typeapplication/json
StreamingYes (set stream: true in request body)
ModelInput / 1M tokensOutput / 1M tokens
v0-1.5-lg$15.00$75.00
v0-1.5-md$3.00$15.00
v0-1.0-md$3.00$15.00

Next Steps