---
title: "AI Gateway for OpenAI, Anthropic and Gemini SDKs | Verosek"
description: "Route the calls your OpenAI, Anthropic or Gemini SDK already makes through one gateway to your deployments. Change the base URL and key, and keep your code."
url: https://verosek.com/ai-gateway
---

AI Gateway

# One SDK. Your models, your providers.

Twelve OpenAI endpoints, native Anthropic, native Gemini. Swap SDKs, swap providers, swap models — without editing your app.

[Book a call](https://cal.com/verosek-solutions-u9ztip/30min)

AI Gateway is the model side of Verosek's AI + MCP Gateway: it routes each call your OpenAI, Anthropic or Gemini SDK already makes to one of your organisation's deployments, and chat calls fall back in priority order when one fails.

02 — Line migration

## Keep your SDK, Change the base URL.

```
import openai

client = openai.OpenAI(
    api_key="vsk_...",        # Verosek virtual key
    base_url="http://your-gateway/v1",  # ← your Verosek gateway
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "How many users are in the database?"}],
)

# Tools handled internally. Policy enforced. Every step audited.
print(response.choices[0].message.content)
```

```
import anthropic

client = anthropic.Anthropic(
    api_key="vsk_...",        # Verosek virtual key
    base_url="http://your-gateway",  # ← your Verosek gateway
)

response = client.messages.create(
    model="claude-sonnet-4",
    messages=[{"role": "user", "content": "How many users are in the database?"}],
)

# Tools handled internally. Policy enforced. Every step audited.
print(response.content[0].text)
```

```
from google import genai

client = genai.Client(
    api_key="vsk_...",        # Verosek virtual key
    http_options={"base_url": "http://your-gateway"},  # ← your Verosek gateway
)

response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="How many users are in the database?",
)

# Tools handled internally. Policy enforced. Every step audited.
print(response.text)
```

Cross-SDK Routing Matrix

## Run Claude through the OpenAI SDK. GPT through Anthropic. Any combination.

|  | OpenAI | Anthropic | Gemini |
| --- | --- | --- | --- |
| OpenAI SDK | Yes | Yes | Yes |
| Anthropic SDK | Yes | Yes | Yes |
| Gemini SDK | Yes | Yes | Yes |

API Surface

## Fifteen endpoints. Three SDKs. One gateway.

Requests arriving in the OpenAI, Anthropic or Gemini API format are translated by the Verosek gateway and routed out to your providers’ native APIs, including self-hosted models.

- TRANSLATE · GOVERN · ROUTE
- REQUEST IN · ANY SDK FORMAT
- ROUTED OUT · YOUR PROVIDERS
- POST /v1/chat/completions · openai (py · ts)
- POST /v1/messages · anthropic (py · ts)
- POST /v1beta/models:generateContent · google-genai (py · ts)
- POST /v1/embeddings · openai-compatible
- OpenAI · /v1/chat/completions
- Anthropic · /v1/messages
- Google Gemini · :generateContent
- Self-hosted · in your VPC · air-gapped
- + 15 endpoints across the three SDKs
- + any OpenAI-compatible endpoint

On The Gateway

## Where a call may go, and what else runs on it.

### Keep calls in the regions you name.

A rule on the key, in countries or regions, is checked before any upstream call.

### Run agents on it too.

Versioned agents get their own managed key and limits on loops and time. Call them through the same API, or offer them as MCP tools.

## <30 ms P99 overhead Measured on baseline profile

| Stage | Budget | What it does |
| --- | --- | --- |
| Virtual-key check | ~1 ms | Checks the key |
| Request translation | ~1 ms | Translates the request |
| Shield pre-LLM enforce | < 30 ms | Scans for personal data and secrets |
| Shield post-LLM enforce | < 30 ms | Scans the reply the same way |
| Audit enqueue | ~0.5 ms | Queues the audit record |

## Frequently Asked Questions

### What is an AI gateway?

An AI gateway sits between your apps and your model providers. It routes each call and controls who may call which model and what they spend. Verosek's AI Gateway does that, and the same key carries the rules for your agents' tool calls.

### How is this different from a normal LLM gateway or proxy?

A proxy forwards the call and checks a key. Verosek governs the call itself: what runs, on what data, under what limits, before anything executes. Routing is the easy part. Governing the action is the hard part, and that is the part we own.

### Do we have to change our code?

Two values: your base URL and your key. Your existing OpenAI, Anthropic, and Gemini code keeps working. You get full governance without a rewrite.

### What stops an agent from doing something it shouldn't?

Every action is checked against your policy before it runs, down to the specific operation and the data it touches. Disallowed actions never reach your systems. Verosek decides per action.

### Will all this governance slow us down?

No. The overhead stays invisible in production, and a slow or failing provider is routed around for you automatically.

### Is there one gateway that handles both LLM calls and MCP tool calls?

Yes, that is what Verosek is. One key routes your model calls to your deployments and carries the rules for your agents' tools, and a request's model and tool steps land in the same sealed trace.

## [ From the blog ]

[All posts →](https://verosek.com/blog)

Field guide

### [How do you stop an AI agent's tool call before it runs?](https://verosek.com/blog/stop-a-tool-call-before-it-runs)

Put the decision outside the AI. Verosek checks what an agent tries to do against the rules you set, lets the allowed actions through, stops the rest and keeps a sealed record of every decision.

Field guide

### [How do you secure AI agents?](https://verosek.com/blog/how-do-you-secure-ai-agents)

Limit what each agent can do, decide each action outside the AI model, read what it reads and keep a record you can check. Verosek does all four in one place, so security is not a second vendor.

Reference

### [AI gateway, LLM router, MCP gateway, AI firewall: what is the difference?](https://verosek.com/blog/ai-gateway-vs-llm-router-vs-mcp-gateway-vs-ai-firewall)

A router picks the model, an AI gateway controls who may use it, a firewall reads the words, and an MCP gateway decides each tool call before it runs. Who needs which, and how Verosek does them on one key.

## Two lines to migrate. Your SDK, your providers.

[Book a call](https://cal.com/verosek-solutions-u9ztip/30min)
