Solutions / AI Gateway

One gateway for every model, agent, and MCP tool.

Route traffic across providers with automatic failover. Check every request and response. Log every call with its caller, cost, and outcome. Run it on your own servers or in any major cloud.

Delivered through Cortega AI Border Gateway.

Server racks and cabling inside a data center
52,000requests per second on one 8 vCPU gateway, at 100% success
~2 msmedian overhead per call at 40,000 requests per second
4 placesto install: your own servers, AWS, Azure, or GCP
Zerodowntime during rolling upgrades of high-availability installs
See the performance data →
Provider and model routing

Keep traffic moving when a provider fails.

Give each team a routing plan across models and providers. The gateway retries, takes failing models out of rotation, and sends the request to the next model in the plan.

01

Failover

Set weighted, failover, or conditional routing per team. A model that keeps failing is taken out of rotation and returns when it recovers.

02

Retries and timeouts

Retry on 5xx, 429, and connection errors. A call that runs past its timeout moves to the next model in the plan.

03

Semantic routing

Route each request by its content to the model you assigned to that kind of work, such as coding, summaries, or legal review.

04

Any provider

Cloud providers and self-hosted models sit behind one OpenAI- and Anthropic-compatible API. Provider keys stay in the gateway. Callers use Cortega keys.

Explore AI Routing →
Observability

See every call.

Every model and tool call is recorded with who made it, which model served it, what it cost, how long it took, and what the guardrails decided.

01

Request log

Search calls by user, team, tenant, model, or outcome. Open one to see its tokens, latency, cost, and guardrail results.

02

Content capture

Choose whether prompts and responses are stored, so the log matches your audit and privacy rules.

03

Analytics API

Read the same data through the Analytics API, or let your own agents query it through the Observability MCP server.

Guardrails

Check requests and responses.

Guardrails run on prompts, responses, tool arguments, and tool results. Each guardrail can mask, block, or log.

01

Sensitive data

Detect PII, PHI, and credentials. Mask them or block the call before data leaves your network.

02

Prompt attacks

Catch prompt injection, SQL injection, social engineering, and fraud attempts. Add external moderation services where you already use them.

03

Company policy

Upload your policy documents. The gateway checks model output against the rules they contain.

04

Targeted binding

Bind each guardrail to the teams, models, MCP servers, and tools that need it.

Explore AI Firewall →
MCP support

Govern the tools your agents call.

Register MCP servers once. Agents reach them through the gateway with the same key they use for models.

01

Server registry

Add MCP servers in the console. The gateway handles their credentials so agents never hold them.

02

Tool authorization

Choose which tools each team can call. Tool lists show only permitted tools, and every call is checked.

03

Tool monitoring

Tool calls appear in the request log next to model calls. Guardrails check tool arguments and results.

RedTeam

Test models and guardrails before you change them.

The gateway includes RedTeam test suites. Run them against any model you have connected, with and without your guardrails, and compare the scores.

01

Test suites

Safety, privacy, hallucination, and domain suites for finance, healthcare, and legal. Each run reports a score per suite.

02

Before and after

Run the same suites before and after a model or guardrail change. Every run is kept, so you can compare results over time.

Explore AI Red Teaming →
Model management

Move to newer models without editing every team.

New models arrive every month. Test a candidate on your own suites, then switch every team to it in one step.

01

Model upgrades

Replace a model with a newer one across every team's routing at once. Preview which teams change before you apply it. Routing weights carry over.

02

Model studies

Run test suites on a candidate model now or at an off-peak time. Run a comparative study of the old and new model before an upgrade.

03

Insights

Model recommendations, workload mix, model performance, and spend, built from your own traffic.

Explore Model Manager →
Enterprise features

Built for many teams and tenants.

Give each team its own access, models, and spend. Keep a record of every change an administrator makes.

01

SSO

Users sign in to the console through your company identity provider.

02

RBAC

Roles and per-screen permissions decide what each console user can see and change.

03

Audit log

Every admin change is written to a hash-chained log. Verify Chain shows whether any entry was altered.

05

APIs

Gateway, analytics, and management APIs with published OpenAPI specs. API keys carry scopes.

Performance and scale

Add gateways to add capacity.

One 8 vCPU gateway sustained 52,000 requests per second at 100% success. Capacity grows with each gateway you add, at the same cost per request.

01

Horizontal scale

Run many gateway nodes behind a load balancer, with several gateways on each node. The console pushes configuration to all of them.

02

Low overhead

About 2 ms per call up to 40,000 requests per second. Streaming responses pass through token by token.

03

Keeps serving

Configuration updates apply without dropping calls in flight. Gateways keep their last configuration if the console is unreachable.

See the performance data →
Upgrades and support

Upgrade without downtime. Get answers from your own agent.

The install monitors its own services and gateways. Upgrades run one node at a time. Cortega Doctor gives your support agent the evidence to diagnose a problem.

01

Zero-downtime upgrades

On a high-availability install, nodes upgrade one at a time while the others serve traffic. Roll back the same way.

02

Self-monitoring

Platform Health shows every service and gateway. On AWS, node heartbeats and alarms notify you when a node stops reporting.

03

Cortega Doctor

A read-only support MCP server that your own agent, such as Claude Code or Codex, runs against your install. It reads topology, logs, and config, runs live checks, and answers questions about how Cortega works. It changes nothing and makes no outbound connection.

Deployment

Install it yourself, where your data lives.

The release package installs, upgrades, and adds nodes on its own. Choose single-node or multi-node, with or without a load balancer.

01

On-prem

Run on one machine with Docker or across your own servers. Air-gapped installs are supported.

02

AWS

Single-node or multi-node installs from one setup script, with an optional external Postgres database.

03

Azure and GCP

Terraform installs with the same topology options as AWS: core nodes, gateway nodes, and a load balancer.

In the console

Routing, security, and testing in one console.

Observability
AI Border Gateway activity feed with request identity, model, cost, latency, and outcomes
Cortega guardrail configuration
Cortega MCP server registry
Cortega Insights model recommendations
Cortega RedTeam test results

From the Cortega console.

How AIBG works

AI Border Gateway architecture

AIBG routes model traffic across providers and private endpoints, governs MCP tool calls, and applies guardrails to requests and responses.

Applications send requests through input checks to the model router. Least-cost, semantic, time-of-day routing and load balancing choose cloud or private endpoints, with retry, failover and API interworking. MCP calls take a separate tool authorization path. Responses return through guardrails, with streaming to the caller. Telemetry feeds usage insights, cost tracking and advanced insights.
Solid teal lines: requests. Gray return line: responses. Dashed line: telemetry. Logical flow; checks apply according to configuration. Compare package availability →
Guardrails on model and MCP traffic

PII, PHI, credential leakage, prompt injection and SQL injection checks, with local models or OpenAI Moderation, Azure, Bedrock and Google Model Armor. Cortega Guardrails add social engineering, fraud prevention, policy violation and threat-level management.

MAKE YOUR NEXT MOVE

Book a demo

Explore how Cortega fits your AI environment.

Request a demo Learn more Explore the Cortega documentation