How routing works
When you make a request to Lumenfall:- Model matching — Lumenfall matches your requested model to available providers using routing rules
- Provider selection — The system selects providers based on priority and weight
- Execution — Your request is sent to the selected provider
- Failover — If a provider fails, the request automatically routes to the next available provider
Priority groups
Providers are organized into priority groups. Lumenfall tries providers in the highest priority group first (priority 0), then falls back to lower priority groups if needed.Routing configuration is currently managed by Lumenfall. If you need a specific routing setup, contact support.
| Provider | Priority | Weight |
|---|---|---|
| Google Vertex | 0 | 100% |
| OpenAI | 1 | 70% |
| Replicate | 1 | 30% |
- Google Vertex is always tried first (priority 0)
- If Google Vertex fails, the request falls back to priority group 1
- Within priority group 1, 70% of requests go to OpenAI and 30% to Replicate
Weighted load balancing
Within a priority group, Lumenfall can split traffic between providers using weights. This enables:- Cost optimization — Routing more traffic to cheaper providers
- Capacity management — Distributing load across providers
- Quality optimization — Favoring providers with better output for specific models
Model pattern matching
Routing rules use glob patterns to match model names:| Pattern | Matches |
|---|---|
imagen-3 | Exact match for imagen-3 |
imagen-* | Any model starting with imagen- |
dall-e-* | Any model starting with dall-e- |
* | Any model (catch-all) |
Forcing a specific provider
While routing is managed by Lumenfall, you can bypass it and force a specific provider by prefixing the model name:vertex/— Google Vertex AIopenai/— OpenAIreplicate/— Replicate
Automatic failover
If a provider returns an error or times out, Lumenfall automatically:- Logs the failure with timing information
- Selects the next provider based on priority/weight
- Retries the request
- Returns the result from the successful provider