The control plane for production AI
Access all LLMs through a single API, with intelligent routing, cost management, and security built-in.
1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5response = client.responses.create(
6 model="openai/gpt-5.2",
7 input=[
8 {"type": "message", "role": "user", "content": "Which LLM is actually the best? No bias allowed."},
9 ],
10)1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5response = client.responses.create(
6 model="anthropic/claude-sonnet-4-20250514",
7 input=[
8 {"type": "message", "role": "user", "content": "Which LLM is actually the best? No bias allowed."},
9 ],
10)1from merge_gateway import MergeGateway
2
3client = MergeGateway(api_key="YOUR_API_KEY")
4
5response = client.responses.create(
6 model="google/gemini-2.0-flash",
7 input=[
8 {"type": "message", "role": "user", "content": "Which LLM is actually the best? No bias allowed."},
9 ],
10)1import { MergeGateway } from "merge-gateway-sdk";
2
3const client = new MergeGateway({ apiKey: "YOUR_API_KEY" });
4
5const response = await client.responses.create({
6 model: "openai/gpt-5.2",
7 input: [
8 { type: "message", role: "user", content: "Which LLM is actually the best? No bias allowed." },
9 ],
10});1import { MergeGateway } from "merge-gateway-sdk";
2
3const client = new MergeGateway({ apiKey: "YOUR_API_KEY" });
4
5const response = await client.responses.create({
6 model: "anthropic/claude-sonnet-4-20250514",
7 input: [
8 { type: "message", role: "user", content: "Which LLM is actually the best? No bias allowed." },
9 ],
10});1import { MergeGateway } from "merge-gateway-sdk";
2
3const client = new MergeGateway({ apiKey: "YOUR_API_KEY" });
4
5const response = await client.responses.create({
6 model: "google/gemini-2.0-flash",
7 input: [
8 { type: "message", role: "user", content: "Which LLM is actually the best? No bias allowed." },
9 ],
10});



One API. Every model. Total control.
Stop managing separate provider accounts. One endpoint gives you access to every major LLM with routing, cost controls, and observability included by default.
Your models stay up, even when providers don't
Connect to every major LLM through one endpoint. Merge routes each request automatically by cost, latency, or quality.
Every new model Merge supports is available to you automatically. When a provider goes down, failover is instant. No code changes required.

Set a budget, we'll enforce it
Cap spend by project, team, or customer tier in real time. Cut token costs automatically with context compression.
Attribute every dollar to a model, provider, and team. Consolidate all provider invoices into one.

Route on your own terms, not ours
Define what the best model means for your product. Merge scores every model against benchmarks you weight and picks the winner on each request.
Start with presets or build your own. See which models were chosen and why to fine-tune your routing logic.
Control what reaches your models, and what doesn't
Stay in compliance with data loss prevention (DLP), prompt injection protection, and more. Filter sensitive data before it reaches any provider.
Enforce per-customer model and region policies. Log every routing decision, cost, and outcome in one place.
Give every customer their own model controls
Embed routing controls in your product, without building custom infrastructure. Allow customer to own routing policies, credentials, budgets, and usage controls.
Programmatic management
Provision, configure, and manage every customer through APIs. No manual setup or dashboard required.
Per-customer routing
Give each customer their own routing policies while automatically falling back to your organization defaults.
Customer-managed API keys
Support BYOK with built-in fallback or strict mode for compliance and data residency.
Budgets and usage
Set spend limits, track usage by customer, and support pass-through billing with per-tenant reporting.
One line of code.
Deploy once.
No excuses.
Change the base URL to gateway.merge.dev/v1.
Every model, routing rule, and cost control is live from the first request.
One API key replaces every provider signup
Access all major LLMs with one API key. No separate accounts, no scattered credentials, no multiple invoices to manage.
Switch providers with a config change, not a refactor
Test any model head-to-head. Migrate away from a vendor without touching your application code.
Access every new model the day it ships
New providers and versions available automatically. No integration updates, no release delays.
See Gateway in action
“Thanks to Merge Gateway’s LLM routing functionality and spend cap rules, we’re able to save more than $10,000 per month on LLM spend without sacrificing performance.”
FAQ
Gateway charges a 5% markup on top of underlying provider costs with no per-seat charges. Get $10 in free credits on signup, then $10 credits every month (credit card required).
All major providers, including OpenAI, Anthropic, Google (Gemini), Grok (X), Mistral, and Cohere. New providers and models are added regularly and available through the same API.
Gateway provides deterministic and intelligent routing to optimize for cost, performance, latency, or the best model for each task. With Build Your Own Router, you define what "best" means using your own benchmarks. If a provider degrades, traffic automatically shifts to maintain reliability.
Build Your Own Router lets you define what "best" means for your traffic instead of relying on Merge's internal scoring. Pick benchmarks from our curated library, add your own models and scoring via API or JSON upload, assign weights, or select presets like Code-heavy or Reasoning-heavy. Every routing decision includes a plain-language explanation of the model chosen and why.
Most teams make their first call in minutes. If you're already calling LLM APIs, it's a single endpoint swap. Routing, cost controls, and security can be configured from the dashboard after you're connected.
Yes. Set Gateway as your base URL. Existing code works as-is, no new SDK required. A native SDK is available for deeper integration.
Yes. Add your API keys in the Merge dashboard and we'll route requests to those providers automatically. BYOK usage is billed at $0.05 per million tokens.
Your AI roadmap is ambitious. Your infrastructure should match.
Start for free. Zero fees for 12 months when you sign up by June 30.


