A router analyzes the request and, based on rules, a classifier or metadata, sends it to the appropriate model. In advanced variants multiple models generate candidates in parallel, and an aggregation mechanism (voting, ranking, a judge model) selects or merges the best result.
No single model is best at everything or cost-optimal; a layer is needed to combine the strengths of multiple models.