VCodeX
Providers & keys

Platform credits

Use platform-managed keys on a transparent credit ledger.

When you don't bring your own key, requests can run on platform-managed keys billed from a credit balance, separate from your subscription.

Each tenant has a credit record with:

  • balance, monthly_allowance and monthly_usage
  • spending_cap and overdraft_limit
  • alert_threshold_pct (e.g. [80, 90, 100])
  • tier_margin — the markup applied to platform-key usage
  • allowed_model_tiers — which tiers may use platform keys
  • platform_key_rpm — a per-tenant rate cap on platform keys

Every change is an immutable credit_transaction row — monthly allowance, usage deductions, manual credits/debits, top-ups and spending-cap refunds — so the ledger is fully auditable.

No markup on your own keys

BYOK usage bills your providers directly with no per-token markup. Margin applies only to platform-key usage on managed credits.