How the AI Gateway works

The AI Gateway is one gateway for every model provider, with a route per protocol: /ai/v1 for OpenAI clients, /ai for Anthropic and Google. Your code and agents call it, and it calls the provider.

Before you start

Calls through the gateway need a Veryfront account. Sign in or create one.

Who pays

Calls goBilled toSet up
Through the gateway, on Veryfront's keyYour Veryfront creditsAn API key in your code; nothing for agents
Through the gateway, on your keyYour provider accountUse your own provider key
Straight to the provider, no gatewayYour provider accountOPENAI_API_KEY in the project's environment

Choose a task

You want toGo to
Call any model from your codeUse any SDK
Bill model calls to your own OpenAI or Anthropic accountUse your own provider key
Run Claude Code, Cursor or Codex on Veryfront creditsUse coding agents
Let a key call only some modelsLimit an API key's models

Next steps