Bring your own keys

/docs/byok

Use your own provider API keys while keeping Relixr routing, guardrails, and observability.

BYOK lets you keep billing directly with a provider — using your own OpenAI, Anthropic, Google, or Mistral key — while still getting Relixr's routing, guardrails, and usage metadata on every call.

Store a Provider Key

  1. Go to API Keys in the dashboard.
  2. Select the Bring Your Own Keys tab.
  3. Choose a provider and paste its API key.
  4. Select Save.

The gateway uses your key at route time. Routing decisions and usage still flow through Relixr exactly as they would otherwise.

  • Supported providers: OpenAI, Anthropic, Google, Mistral (configured per workspace).
  • Keys are encrypted at rest and are never returned by the API after you save them.
  • Clearing a provider key falls back to Relixr-managed credentials, where available.
  • Billing: prepaid credits still settle for Relixr platform charges; the provider-cost portion reflects your own direct usage with that provider.
PUT /api/workspace/byok
Authorization: Bearer mgk_...

{"provider": "openai", "apiKey": "sk-..."}
Tip

BYOK is a good fit if you've already negotiated volume pricing directly with a provider — you keep that rate while still getting Relixr's routing and guardrails on top.

Was this helpful?

Still stuck? Help center · Doctor