Credits · one key · four APIs

The model gateway that fits the tools you already run.

Invite-only signup, mint an mmux_ key, and point Claude Code, Cursor, Codex, or Gemini at ModelMux. One catalog, metered usage, no upstream credentials on your laptop.

Four APIs
Anthropic Messages, OpenAI Responses, Chat Completions, Gemini generateContent
Metered credits
Holds, grants, and per-token rates in micros. Balance never leaves the server.
Operated catalog
Plans, RPM, rewrite rules, and upstream keys without a deploy.

Models

Public slugs and raw ids both work — claude-sonnet-5 or anthropic/claude-sonnet-5.

ModelIdContextIn / 1MOut / 1M
Loading catalog…

Four drop-in endpoints

Anthropic Messages

POST https://api.modelmux.xyz/v1/messages
ANTHROPIC_BASE_URL=https://api.modelmux.xyz
ANTHROPIC_API_KEY=mmux_…

Origin only — do not append /v1.

OpenAI Chat Completions

POST https://api.modelmux.xyz/v1/chat/completions
base_url=https://api.modelmux.xyz/v1

OpenAI Responses / Codex

model_provider = "modelmux"
base_url = "https://api.modelmux.xyz/v1"
wire_api = "responses"

Put model and model_provider above the table.

Gemini generateContent

POST https://api.modelmux.xyz/v1beta/models/{model}:generateContent
x-goog-api-key: mmux_… or ?key=

Full snippets →

For customers

  • USD credits, tracked in micros. Holds on the way in, capture on the way out.
  • Named keys. The secret is shown once, then only a prefix.
  • Plan RPM and allowed models applied at the gateway.
  • Usage by hour and model, with cost in credits.

Plans

List price is what you pay for the SKU. Included credits are a separate wallet grant — they can be less, equal, or more than the price.

Loading plans…