Fallbacks and retries
A rate limit halfway through a long run doesn’t end it. The next model answers.
Run your coding agent on any model, for less.
1,000+ models, one API key, up to 40% off tokens. Every run traced, every user on a budget.
Bulk rates, passed on. 0% fee.
Example bill
~$21Ka month
$25K of claude-sonnet-5-5 at list price
OpenRouter~$26K+5.5% fee
Respan~$21Kup to 15% off0% fee
Save about $5.1K a month vs OpenRouter · ~$62K a year
Monthly spend at list price
A rate limit halfway through a long run doesn’t end it. The next model answers.
Spread long runs across models, providers or keys.
Past a user’s budget, the gateway stops their agent’s calls.
Your agent with the Respan SDK or OpenTelemetry. Claude Code, Codex and Cursor too.
claude-opus-5-5 · 18,350 tokens · $0.1831
Spot an error spike, open the requests behind it.
“We scaled from 5M to 500M+ monthly API calls quickly. Respan gave us the debugging layer to resolve production issues 10x faster.”Read story
“This one felt pretty nice.”
“Imagine jumping to a log immediately after every LLM call. This is the dream for debugging.”
Watch film“Respan legit has some of the best UX/DX I’ve ever seen in my life. I truly don’t think I’ve ever integrated a product that was as easy.”
“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
“Great product, really love the metrics dashboard.”
Any of the 1,000+ models on the gateway, with one API key. The gateway serves the OpenAI, Anthropic Messages and Gemini APIs and translates between them, so an agent built on one SDK can call another provider’s model.
Send each request with a customer_identifier, such as your user’s ID, and give that user a period budget. Once their spend passes it, the gateway rejects their requests with a 402 until the next period starts. The period is monthly by default, or daily or weekly.
Give the model your agent calls a list of fallback models. The gateway retries a failing call on the same model, then tries each fallback in order, so one 429 doesn’t end the run. Fallbacks are set in the gateway, without changing your code.
Yes. Instrument it with the Respan SDK or OpenTelemetry, and each turn becomes a trace: every model call with its model, tokens and cost, every tool call and every sub-agent.
Claude Code, Codex CLI, Cursor and Gemini CLI. Claude Code traces through Respan’s session-traces plugin, one trace per turn named claude-code, and the others through their own Respan integrations.
Yes. Point the coding agent at the gateway with your Respan API key, and every call it makes is logged with its tokens and cost. Setup guides cover Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Cline, Roo Code, Aider and more. Claude Code can then switch between Claude models, or stay on one provider, such as Vertex AI.
No. The plugin records in a background worker and sends finished spans after each turn, so Claude Code never waits for Respan. It adds about 0.2 ms to each streamed chunk.
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.