Skip to main content

What is a Gate?

A gate is the core building block of Verlon AI. It’s a configuration that sits between your application and AI providers, controlling how requests are routed, which models are used, and how failures are handled. When you make a request through Verlon, you reference a gate by its ID (a UUID). The gate determines:
  • Which model handles the request
  • What happens if that model fails
  • What parameters are applied (temperature, max tokens, etc.)
  • Whether spending limits are enforced
  • What system prompt is prepended

Gate Types

Verlon supports two gate types:

Task Types

Every gate is configured for a specific task type, which determines which models are available: Chat gates also support optional subtypes for specialized models:
  • Reasoning — o3, o4-mini, Gemini 2.5 Pro
  • Code — Codestral, Devstral
  • Realtime — gpt-4o-realtime

Routing Strategies

Gates support three strategies for handling requests:

Single (Default)

Use only the primary model. No fallbacks. Simplest and most predictable.

Fallback

Try the primary model first. If it fails (provider outage, rate limit, etc.), try each fallback model in order until one succeeds.

Round-Robin

Randomly distribute requests across the primary model and all fallback models. Useful for load balancing or informal cost distribution across providers.

Creating a Gate

From the Dashboard

  1. Go to Dashboard → Gates → Create New Gate
  2. Fill in the required fields:
    • Name — A human-readable label for the gate (e.g., customer-support). The gate ID (UUID) is what you use in API calls.
    • Task Type — What kind of requests this gate handles
    • Model — The primary model to use
  3. Optionally configure:
    • Fallback models and routing strategy
    • System prompt applied to all requests
    • Temperature, max tokens, and top P defaults
    • Spending limits with alert or block enforcement
    • Structured output (JSON schema) for consistent response formats

Via the API

Using a Gate

Once created, reference the gate in your requests:

Gate Configuration Reference

The full gate configuration interface. Fields marked required must be provided when creating a gate. All other fields are optional.

Core Fields

Model Routing

Request Parameters

Defaults applied to all requests through the gate. Can be overridden per-request if allowOverrides is configured.

Smart Routing (Architect)

Verlon’s AI agent (the Architect) analyzes your gate’s description and usage patterns to recommend optimal models.

Structured Output

Force responses into a consistent format. Native JSON schema support for OpenAI models; prompt-injected for other providers.

Spending Limits

Control costs at the gate level. See Spending for account-level controls.
Agent gates are created with identity only (name + description) — their control surface is per-task model config. See Agent Gates.

Read-Only Fields

These fields are returned by the API but cannot be set directly.

Dashboard Tabs

When editing a gate in the dashboard, configuration is organized into tabs:

Basic Info

Name, description, task type, subtypes, and tags. Includes an Auto-enhance description toggle — when enabled, the Architect generates an improved version of your description optimized for smart routing analysis. If you accept the suggestion, it replaces your gate’s description field with the enhanced version.

Models & Routing

Primary model, fallback models, routing strategy, optimization weights, and smart routing (Architect) configuration.

Request Config

System prompt, temperature, max tokens, top P, and override permissions.

Spending Limits

Gate-level spending cap, period, and enforcement type.

Connections

Shows which agent gates delegate a task to this gate. When an agent gate’s task is bound to this gate, calls through that task inherit this gate’s model, parameters, and instructions. This is read-only context — delegation is managed from the agent gate’s Tasks tab. See Agent Gates.

Danger Zone

Delete the gate. This action is irreversible. Agent-gate tasks that delegated to this gate fall back to pass-through.

Gate Limits

The number of gates you can create depends on your plan tier. Check your current usage at Dashboard → Settings.