Provider Routing
Smart multi-provider routing and automatic failover for the same model
nexusflow configures multiple provider endpoints for the same model. The system intelligently selects the best endpoint based on each one's real-time performance and automatically switches when a provider is unavailable — entirely transparent to the caller.
Smart Routing
When you make an API request, the system filters all matching provider endpoints by model ID and request protocol, then selects the best one based on factors like stability and latency. When an endpoint misbehaves, its priority is lowered automatically; once it recovers, it returns to normal with no manual intervention.
Automatic Failover
When the selected endpoint returns a server error (5xx) or rate limit (429), the system automatically retries the next available endpoint until the request succeeds or all endpoints have been tried. 400-class client errors do not trigger retries.
Notes
We recommend implementing error handling for streaming requests on the client to handle stream interruptions.
If you need failover guarantees, use the protocol the model supports most widely (usually the OpenAI protocol), or configure fallback models with Model Fallback.