Advanced Features

Load Balancing

Distribute API traffic across multiple models and providers to maximize throughput, minimize latency, and avoid single-provider bottlenecks — all configured in the Dashboard.

Load Balancing Strategies

OneRouter supports multiple routing strategies, configurable per channel in the Dashboard:

StrategyHow It WorksBest For
Weighted RandomDistributes requests based on assigned weights (e.g., 70% Model A, 30% Model B)Gradual migrations, A/B testing, cost optimization
Priority (Failover)Routes to the highest-priority available model; falls back down the chainProduction resilience, primary/backup setups
Rate-Limit BasedDistributes overflow traffic when a model hits its rate limitHigh-throughput batch processing

Configuring Load Balancing in the Dashboard

  1. Log in to the OneRouter Dashboard at api.onerouter.app/dashboard
  2. Navigate to Channels in the sidebar
  3. For weighted distribution: create multiple channels for the same model group, assign different weights to each
  4. For priority-based: configure model priority ordering within a single channel
  5. Save the configuration — changes take effect immediately with no restart required

Example: Weighted Distribution Across Providers

To split traffic 60/40 between two providers for the same model type:

ChannelModelWeightShare
Channel AGPT-4o (OpenAI)6060% of traffic
Channel BClaude Opus 4.8 (Anthropic)4040% of traffic

Users call one model name — OneRouter handles the distribution transparently. No client-side changes needed.

Pro tip: Start with a 90/10 split when testing a new provider. Gradually increase the weight as you gain confidence in reliability and response quality.