OpenAI-compatible · 40+ providers · one key

One API for every model

LakeRouter is a unified LLM gateway. Call OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI and 40+ other providers through one endpoint — with routing, failover and per-request cost tracking built in.

Bring your own keys — freeNo credit cardWorks with the OpenAI SDK
app.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.lakerouter.com/v1",
    api_key="lr-...",
)

res = client.chat.completions.create(
    model="anthropic/claude-sonnet-4-5",
    messages=[{"role": "user", "content": "Hello"}],
)
# Swap the model string to switch provider. That's it.
40+Providers
1API key
2 linesTo migrate from OpenAI
$0To start with your own keys

Route to models from

OpenAIAnthropicGoogleAWS BedrockAzureMistralDeepSeekxAIGroqCohere
Features

The infrastructure layer between your app and every LLM provider

Keys, routing, retries and spend tracking live in the gateway — not scattered across your codebase.

Unified API

One OpenAI-compatible endpoint for chat, embeddings, vision and tool calling across every provider.

Routing

Pick a model by name or set rules: route by cost, latency or provider, with weighted load balancing across keys.

Automatic failover

When a provider errors, times out or rate-limits, the request is retried on a fallback you define.

Usage analytics

Requests, tokens, latency, errors and spend per request — broken down by model, provider and API key.

Cost control

Spend limits per key and team, budget alerts, and one invoice instead of ten provider bills.

Key management

Store provider keys once. Issue scoped LakeRouter keys per app, environment or teammate — revoke any time.

Models

Frontier, open-weight and fast-inference models. One namespace.

Address any model as provider/model. New releases are added as providers ship them.

OpenAIopenai/*
GPT serieso-series reasoningEmbeddingsImage
Anthropicanthropic/*
Claude OpusClaude SonnetClaude Haiku
Googlegoogle/*
Gemini ProGemini FlashEmbeddings
xAIxai/*
GrokGrok mini
DeepSeekdeepseek/*
DeepSeek VDeepSeek R
Mistralmistral/*
Mistral LargeMistral MediumCodestral
AWS Bedrockbedrock/*
ClaudeLlamaNovaTitan
Azure OpenAIazure/*
GPT seriesYour deployments
Groq · Cerebrasgroq/*
LlamaQwenLow-latency inference
Chat completionsStreamingTool / function callingVisionStructured JSON outputEmbeddingsReasoning models

Plus Cohere, Together AI, Fireworks, OpenRouter, Ollama, Vertex AI and more. See all models →

Quickstart

Change two lines. Keep your SDK.

If your code already uses the OpenAI SDK, you're one base URL away from every other provider.

  1. 01

    Create a key

    Sign up and generate a LakeRouter API key.

  2. 02

    Point your SDK at LakeRouter

    Set base_url to api.lakerouter.com/v1.

  3. 03

    Pick any model

    Change the model string. Streaming, tools and JSON mode work as before.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.lakerouter.com/v1",
    api_key=os.environ["LAKEROUTER_API_KEY"],
)

stream = client.chat.completions.create(
    model="google/gemini-2.5-flash",
    messages=[{"role": "user", "content": "Summarise this PR"}],
    stream=True,
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.lakerouter.com/v1",
  apiKey: process.env.LAKEROUTER_API_KEY,
});

const res = await client.chat.completions.create({
  model: "openai/gpt-4o-mini",
  messages: [{ role: "user", content: "Hello" }],
});
curl https://api.lakerouter.com/v1/chat/completions \
  -H "Authorization: Bearer $LAKEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral/mistral-large-latest",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Reliability

One request. A fallback when a provider doesn't answer.

Define a primary model and fallbacks. If the primary fails, LakeRouter retries on the next one before returning a response.

Your appPOST /v1/chat/completions
lakerouterroute · retry · log
Anthropic 503
AWS Bedrock 200 · served
Google Vertex standby

Fallback chains

Same model on another provider, or a different model entirely — your choice.

Load balancing

Spread traffic across multiple keys and providers to stay under rate limits.

Full request log

Every attempt is recorded, so you can see which provider served what and why.

Pricing

Start free. Pay for what you route.

No seat fees. No minimums on pay-as-you-go.

Bring your own keys

Free

Use your existing provider keys. You pay providers directly.

  • All 40+ providers
  • Routing and failover
  • Usage analytics
  • Scoped API keys
Start free

Pay as you go Popular

Credits

Top up once, use any model. No provider accounts needed.

  • Everything in BYOK
  • One balance, one invoice
  • Spend limits per key
  • Mix credits and your own keys
Get API key

Teams & volume

Custom

Monthly plans and bundles for production workloads.

  • Everything in Pay as you go
  • Dedicated rate limits
  • Priority support
  • Invoicing in EUR / SEK / USD
Talk to us
FAQ

Common questions

Do I need to change my code?

No. LakeRouter speaks the OpenAI API format. Set the base URL to https://api.lakerouter.com/v1, use your LakeRouter key, and choose a model with the provider/model format.

Which models are supported?

Models from 40+ providers, including OpenAI, Anthropic, Google, AWS Bedrock, Azure, Mistral, DeepSeek, xAI, Groq and Cohere. Chat, streaming, tool calling, vision and embeddings are supported where the underlying model supports them.

Can I use my own provider API keys?

Yes. Add your provider keys and route through LakeRouter for free. Usage is billed by the provider directly to you.

How does failover work?

You define a fallback list for a request or route. If the primary provider returns an error, times out or rate-limits, the gateway retries on the next option in the list.

Do you store my prompts?

Request metadata (model, tokens, latency, cost) is logged for analytics. Prompt and response bodies are not stored unless you enable logging for a project.

How is pay-as-you-go priced?

You buy credits and each request is deducted at the model's per-token rate, shown on the models page. Prices are listed per million input and output tokens.

Route your first request in a minute

One key. Every model. Free with your own provider keys.

Launch login modal Launch register modal