AI Gateway

The AI Gateway is one endpoint for every model provider. Your code, agents or coding agent asks for a model, and the gateway calls its provider. The gateway offers one key for every provider, one bill and one place to turn models off.

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

Credits come from the account the API key belongs to. A project's key bills that project's account; a key from your account settings bills your personal account.

Which models it serves

Every model has a provider/model ID, such as anthropic/claude-haiku-4-5-20251001, and GET /ai/models lists them. Each level can only narrow the one above it:

LevelTurns models off withSets a default with
AccountAccount settings > Model accessDefault model
ProjectBuilding blocks > ModelsDefault model
API keySet allowed models

An agent with no model of its own answers with its project's default, or else its account's. A key that calls a model off its list gets 403 key-model-denied.

Choose a task

Next steps