Docs
Point a harness at MagmaRouter, understand what the caps do to your request, and find out which models can actually call tools.
What MagmaRouter is
MagmaRouter is an OpenAI- and Anthropic-compatible gateway for uncensored, abliterated and niche models, with per-key spend caps that hold and no prompt retention.
Quickstart: your first request
Get a key, pick a model and make a billed request against MagmaRouter in about two minutes.
Quickstart: run Claude Code on it
Point Claude Code at MagmaRouter with four environment variables. Verified end to end, tool calls included.
Two formats, one pipeline
OpenAI chat completions and Anthropic messages are both first-class, and both bill through the same metering.
The catalogue
Query the model catalogue by search, filter, limit and offset. Filtering happens in SQL, so it scales past twenty thousand models.
Tool calling, and which models have it
An agent is only useful if the model can call tools. Most of the uncensored catalogue cannot, and that is the biggest constraint on this product.
Keys
Mint a key per user, per agent or per engagement, each with its own cap. Keys are stored as hashes and shown once.
Spend caps, and what happens at the edge
Caps are enforced before the upstream call: reserve the prompt cost, clamp max_tokens to what is left, settle on the real usage.
Billing
Credit is prepaid and held in integer nano-dollars. Top ups happen inside the dashboard, not on a redirect.
Signed request receipts
Every response carries a signed statement of which model served it and the hash of the canonical prompt. Verify it without handing back the prompt.
Retention
Model, tokens, cost, status, timestamp. Not the prompt, not the completion, not a sample of either.
Endpoint reference
Every public endpoint the gateway serves, what it takes and what it returns.
Errors
Errors come back in the shape of the format you called, so your SDK parses them without special handling.
Known limits
The things this gateway genuinely cannot do today, stated plainly so you find out here rather than halfway through an integration.