AI Gateway

Voyager Gateway is an OpenAI-compatible API at https://api.vgercode.com/api/gateway. One endpoint reaches hundreds of models, and the same key can track usage, cap spend, store your own provider keys, and apply organization rules.

The gateway works seamlessly with the Vercel AI SDK, the OpenAI SDK, or any OpenAI-compatible client in any language.

Key features

  • One key, hundreds of models: Access models from Anthropic, OpenAI, Google, xAI, Mistral, MiniMax, and more with a single API key
  • OpenAI-compatible API: Drop-in replacement for OpenAI's /chat/completions endpoint -- switch models by changing a single string
  • Streaming support: Full Server-Sent Events (SSE) streaming with time-to-first-token tracking
  • BYOK (Bring Your Own Key): Use your own provider API keys with encrypted-at-rest storage
  • Usage tracking: Per-request cost and token tracking with microdollar precision
  • Organization controls: Model allow lists, provider restrictions, per-user daily spending limits, and balance management
  • Tool calling: Robust function/tool calling with automatic repair for deduplication and orphan cleanup
  • FIM completions: Fill-in-the-middle code completions via Mistral Codestral
import { streamText } from "ai"
import { createOpenAI } from "@ai-sdk/openai"

const voyager = createOpenAI({
  baseURL: "https://api.vgercode.com/api/gateway",
  apiKey: process.env.VOYAGER_API_KEY,
})

const result = streamText({
  model: voyager.chat("anthropic/claude-sonnet-4.5"),
  prompt: "Why is the sky blue?",
})

Base URL

All gateway API requests use the following base URL:

https://api.vgercode.com/api/gateway

More resources