Bring Your Own Key — ML Junction docs

BYOK credentials are encrypted and organization-scoped. The upstream provider bills your provider account. ML Junction can charge a separate routing fee, bounded by max_byok_fee_usd.

Mode · Behavior
platform_only · Use platform-funded provider credentials only
byok_strict · Use customer BYOK credentials only; no platform-funded fallback
byok_first_paid_fallback · Try BYOK first, then platform-funded fallback when allowed
platform_first_byok_fallback · Try platform funding first, then BYOK fallback
{
  "model": "gpt-5.5",
  "messages": [
    { "role": "user", "content": "Run this only with my provider account." }
  ],
  "routing": {
    "mode": "byok_strict",
    "production_mode": true,
    "provider": "openai",
    "max_byok_fee_usd": 0.01
  }
}

BYOK still requires enough platform balance to settle the routing fee. The receipt distinguishes billing_mode and credential_source so users can verify who paid the provider.

Canonical URL: https://mljunction.com/docs/byok