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.
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.
Route to models from
Keys, routing, retries and spend tracking live in the gateway — not scattered across your codebase.
One OpenAI-compatible endpoint for chat, embeddings, vision and tool calling across every provider.
Pick a model by name or set rules: route by cost, latency or provider, with weighted load balancing across keys.
When a provider errors, times out or rate-limits, the request is retried on a fallback you define.
Requests, tokens, latency, errors and spend per request — broken down by model, provider and API key.
Spend limits per key and team, budget alerts, and one invoice instead of ten provider bills.
Store provider keys once. Issue scoped LakeRouter keys per app, environment or teammate — revoke any time.
Address any model as provider/model. New releases are added as providers ship them.
Plus Cohere, Together AI, Fireworks, OpenRouter, Ollama, Vertex AI and more. See all models →
If your code already uses the OpenAI SDK, you're one base URL away from every other provider.
Sign up and generate a LakeRouter API key.
Set base_url to api.lakerouter.com/v1.
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"}] }'
Define a primary model and fallbacks. If the primary fails, LakeRouter retries on the next one before returning a response.
Same model on another provider, or a different model entirely — your choice.
Spread traffic across multiple keys and providers to stay under rate limits.
Every attempt is recorded, so you can see which provider served what and why.
No seat fees. No minimums on pay-as-you-go.
Use your existing provider keys. You pay providers directly.
Top up once, use any model. No provider accounts needed.
Monthly plans and bundles for production workloads.
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.
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.
Yes. Add your provider keys and route through LakeRouter for free. Usage is billed by the provider directly to you.
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.
Request metadata (model, tokens, latency, cost) is logged for analytics. Prompt and response bodies are not stored unless you enable logging for a project.
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.
One key. Every model. Free with your own provider keys.
Få direkt tillgång till mallen och steg-för-steg-guiden
Full tillgång upplåst. Här är vad du kan göra nu: