Skip to main content

Open-source AI gateway

Use any model with one API key.

1,000+ models, 0% fee. Up to 70% off tokens. Open source.

OpenAI SDK
claude-opus-5-5
Hello! How can I help today?
AlphaSense
Mem0
Whatnot
Mercor
Gumloop
Retell AI
Proximal
Datacurve
Freebuff
Command Code
Algolia
01Pricing

Respan costs up to 70% less per token.

Bulk rates, passed on. 0% fee.

Browse all models

02Performance

Respan Gateway beats LiteLLM on throughput, latency and memory.

Explore the AI gateway
Features

Respan Gateway keeps every model call running, safe and on budget.

01

Fallbacks and retries

When a provider fails, the next one answers.

This callUptimeDowntime / monthAnthropic directly429 · failed99.78%~1.6 hThrough Respan200 · 1.81s99.9999%~2 s
claude-opus-5-5429 · 3 tries · 0.85s
gpt-6.1-sol200 · 0.96s
glm-5.3-primestandby
02

Load balancing

Split traffic across models, providers or keys.

claude-sonnet-5-540%
Anthropic20%
Amazon Bedrock10%
Vertex AI10%
gpt-6.1-sol40%
Primary key20%
Overflow key10%
Batch key10%
gemini-3.8-flash20%
Google20%
03

PII redaction

Masks personal data before the model sees it.

you send

Refund order 8841 for Jane Doe, card 4242 4242 4242 4242, receipt to jane@acme.com.

model sees

Refund order 8841 for , card , receipt to .

3 masked · name, card, emailnone reached the model

04

Tools for every model

Memory, web search, code and MCP.

qwen3.8-max-prime4 tool calls
Can I still return the jacket I bought?
  1. Memory“jacket”Order 8841, Oct 18
  2. Your MCP serverorders “8841”Delivered Oct 21 · $86.00
  3. Web search“acme.com returns”30 days from delivery
  4. CodeNov 2 − Oct 2112 days
Yes. It’s day 12 of the 30-day window, so you’d get $86.00 back.
05

Spend limits per customer

Calls stop at each customer's budget.

acme-corp$482.10 / $50096%
globex$1,000 / $1,000blocked
hooli$388.00 / $2,00019%
initech$212.40 / $1,00021%
umbrella$64.90 / $25025%
FAQ

AI gateway questions.

Can I use Claude Code with GPT or Gemini models?

Yes. Claude Code speaks the Anthropic Messages API, and the gateway serves that API for every model, translating streaming, tool calls, and reasoning. Set ANTHROPIC_BASE_URL to the gateway and pick a GPT or Gemini model. To keep Claude and log every call instead, run respan-gateway proxy --anthropic in front of Claude Code.

Is there a self-hosted alternative to OpenRouter?

Respan's gateway is one. OpenRouter is a hosted service you cannot run yourself; Respan's gateway is open source under MIT and Apache-2.0 and runs as a single binary on your own machine or cluster, calling OpenAI, Anthropic, Gemini, xAI, DeepSeek, Mistral, Groq, Ollama, vLLM, and more with your own keys. If you want it hosted after all, the same gateway runs managed on Respan with 1,000+ models on one bill.

Can Respan's gateway replace LiteLLM?

For the proxy, yes. It does the same job, one OpenAI-compatible endpoint for every vendor, as a single Rust binary instead of a Python server, and it also serves the Anthropic Messages and Gemini APIs natively, translating between all of them. Routing, fallback, retries, hedged requests, and per-call cost tracking are built in.

How fast is the gateway?

In our benchmarks it adds 0.07 ms of latency at the median, serves 56,734 requests per second, and uses 31 MB of memory. On the same setup Bifrost added 0.16 ms at 18,182 requests per second and 488 MB, Portkey 0.17 ms at 4,187 per second and 350 MB, and LiteLLM with one worker 4.34 ms at 268 per second and 418 MB.

Can it work as an MCP gateway?

Yes. List MCP servers in gateway.toml, over HTTP or stdio, and the gateway serves each one at /mcp/{name} behind the same client keys as everything else, with bearer, OAuth, or one-time login auth. It can also run those tools inside chat requests, so any model can use them from a plain chat call.

07Customers

AI teams scale to hundreds of millions of requests on Respan.

All customer stories
“We scaled from 5M to 500M+ monthly API calls quickly. Respan gave us the debugging layer to resolve production issues 10x faster.”
Read story
Zexia ZhangCTO
“Imagine jumping to a log immediately after every LLM call. This is the dream for debugging.”
Daniel WolfProduct lead
“Respan has been key in helping us scale to hundreds of millions of requests with reliable observability into our LLM calls and failure rates.”
Read story
Deshraj YadavCo-founder and CTO

Build on the fastest OSS AI gateway.