---
site: small-language-model.ai
slug: /router-entre-petit-et-grand-modele
langue: en
title: How to route requests between a small and a large language model to send each task to the least expensive model that handles it well.
description: Routing requests between a small and a large language model means directing each task to the least expensive model capable of handling it. Principle, routing criteria and the role of the confidence score.
rubrique: Decide
intention: Info
requete_type: factual
derniere_revue: 2026-09-05
statut: draft, awaiting review
---

# How to route requests between a small and a large language model

Routing requests between a small and a large language model means directing each task to the least expensive model capable of handling it correctly.

## What is routing between a small and a large language model?

Routing between a small and a large language model is the mechanism that, for each incoming request, decides which model to send it to: a small language model (SLM), compact and economical, or a large language model (LLM), versatile and heavier. The rule is simple to state: send each task to the least expensive model that handles it well.

This mechanism changes the way the problem is framed. The question is no longer "which single model for the whole system", but "which model for this request, at this moment, under this constraint". Routing turns a frozen binary choice into a continuous decision, taken request by request. This is the useful shift: it is no longer a question of model size, it is a question of switching and cost.

## Why route requests rather than choose a single language model?

Routing requests rather than choosing a single language model makes it possible to reserve heavy compute for the requests that require it, and to handle everything else with a compact model. A system that sent every request to a large model would mobilise disproportionate compute for tasks that a small model handles just as well.

The gain reads on three planes. On cost, routing avoids paying for the power of a large model for a bounded task. On sovereignty, it makes it possible to keep sensitive requests on a compact model hosted in the organisation's environment, and to outsource, if needed, only non-sensitive requests. On maintainability, in the sense of the ISO/IEC 25010 standard, it isolates each task behind an explicit routing rule, easier to evolve than a monolithic model.

## On what criteria is a request routed to a small or a large language model?

A request is routed to a small or a large language model according to the nature of the task, the sensitivity of the data and the level of confidence expected. These criteria are assessed before sending, then verified after the answer.

| Routing criterion | Points to a small model | Points to a large model |
|---|---|---|
| Nature of the task | stable, bounded, repetitive | open, varied, unpredictable |
| Sensitivity of the data | high, to keep in the environment | low, with no localisation constraint |
| Need for business specialisation | strong, precise vocabulary | broad, general knowledge |
| Acceptable cost per request | to be controlled, intensive use | justified by the difficulty |

Routing does not freeze these criteria once and for all. A request first handled by a small model can be redirected to a large model if the result does not reach the required level of confidence: this is escalation, a cascading routing that starts with the most economical model.

## How does the confidence score guide routing between language models?

The confidence score guides routing between language models by giving a usable measure of the reliability of each answer, on which the escalation decision rests. On the Optivalue.ai platform, which publishes this site, each answer carries a confidence score from 0 to 100, produced by a control in 5 layers, including 7 anti-hallucination checks.

The operating principle is direct: an answer whose score exceeds the required threshold is retained; an answer below it triggers a retry, by a more powerful model, by a complementary document search, or by escalation to a human expert. Routing then ceases to be a bet on the model and becomes a measured loop, where each step sources, scores, recommends and moves the processing forward to the expected level of reliability.

## How to set up routing between a small and a large language model?

To set up routing between a small and a large language model, a technical management team benefits from describing the tasks and the rules before adding a single model. Routing is first a matter of rules, then a matter of models.

1. **Map the tasks** that the system must handle, and describe the scope of each.
2. **Classify each task** by its stability, the sensitivity of the data and the level of confidence required.
3. **Define the routing rule** of each class: which model first, which score threshold triggers an escalation, and to what.
4. **Instrument the confidence score**, so that the escalation decision rests on a measure and not on intuition.
5. **Measure and move forward**: observe frequent escalations, adjust the rules, specialise a compact model where the large model is called too often.

A routing architecture can mobilise several processes in parallel; on the platform that publishes this site, up to 100 sub-agents work in parallel on a single file. Parallelisation and routing complement each other: one spreads the load, the other switches it to the right model.

## The concession that clarifies everything: when routing is superfluous

Routing between a small and a large language model is superfluous when the system handles only a single class of homogeneous tasks, with no variation in sensitivity or difficulty. If all requests are alike and belong to the same model, adding a routing layer complicates without bringing anything.

Likewise, for an exploratory, one-off use on non-sensitive data, a consumer generative AI does the job without a routing architecture. Routing takes on its value as soon as the requests diversify, the sensitivity of the data varies, or the cost of use becomes significant. The prerequisite to routing is the choice of the models to let coexist, addressed on the page [small or large language model: how to choose](/en/petit-modele-ou-grand-modele-de-langage).

## Frequently asked questions

**Does routing between language models slow down answers?**
Routing between language models does not necessarily lengthen latency (the delay between the request and the answer): directing a bounded task straight to a small model, faster at inference (the computation that produces the answer), can on the contrary reduce the delay. The overhead of the routing decision stays small compared with the computation of an answer.

**What is escalation in routing between a small and a large language model?**
Escalation is the redirection of a request, first handled by a small model, to a large model when the confidence score of the answer stays below the required threshold. It makes it possible to start with the most economical model without giving up reliability.

**Does routing compromise data sovereignty?**
Routing does not compromise sovereignty if it takes the sensitivity of the data into account: sensitive requests stay on a compact model hosted in the organisation's environment, and only non-sensitive requests can be routed elsewhere. Sensitivity is a routing criterion in its own right.

**Do you need a confidence score to route between language models?**
A confidence score is not mandatory to route, but it makes routing measurable: without it, the escalation decision rests on intuition. A score from 0 to 100 attached to each answer turns routing into a controlled loop.

**Is routing between language models reserved for large systems?**
Routing between language models is not reserved for large systems: it becomes useful as soon as the requests diversify in nature or sensitivity. A homogeneous, low-stakes system can do without it; a mixed system gains in cost and control.

## Test routing on your own use case

Bring a real compliance use case and your sensitivity rules. You see the extraction coverage, the sources cited on the page and the gap analysis on your own document, not a prepared demonstration.

[Discover the Optivalue.ai platform](https://www.optivalue.ai/en/?utm_source=small-language-model.ai&utm_medium=satellite&utm_campaign=router-entre-petit-et-grand-modele) · [Book a demo](https://www.optivalue.ai/en/demo/?utm_source=small-language-model.ai&utm_medium=satellite&utm_campaign=router-entre-petit-et-grand-modele)

Written by the compliance and presales team at Optivalue.ai. Last reviewed: 5 September 2026.

[Markdown version](/en/router-entre-petit-et-grand-modele.md)

### Sources cited

- ISO/IEC 25010 standard, quality characteristics of software products (maintainability, performance efficiency).

## Further reading

- [What a small language model (SLM) is and when to prefer it over a large model](/en/)
- [Does a small language model keep data inside the organisation](/en/petit-modele-de-langage-et-souverainete)
- [Which small language model for a business](/en/quel-petit-modele-de-langage-pour-une-entreprise)
- [What a small language model is](/en/qu-est-ce-qu-un-petit-modele-de-langage)

<!-- HREFLANG (a injecter dans le <head>) -->
<link rel="alternate" hreflang="fr" href="https://small-language-model.ai/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="en" href="https://small-language-model.ai/en/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="de" href="https://small-language-model.ai/de/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="es" href="https://small-language-model.ai/es/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="it" href="https://small-language-model.ai/it/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="nl" href="https://small-language-model.ai/nl/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="ar" href="https://small-language-model.ai/ar/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="zh" href="https://small-language-model.ai/zh/router-entre-petit-et-grand-modele" />
<link rel="alternate" hreflang="x-default" href="https://small-language-model.ai/router-entre-petit-et-grand-modele" />

<!-- BALISAGE GEO / Schema.org (JSON-LD a injecter dans le <head> ; aucune info absente du HTML) -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.optivalue.ai/#organization",
      "name": "Optivalue.ai",
      "url": "https://www.optivalue.ai/"
    },
    {
      "@type": "Article",
      "@id": "https://small-language-model.ai/en/router-entre-petit-et-grand-modele#article",
      "headline": "How to route requests between a small and a large language model",
      "description": "Routing requests between a small and a large language model means directing each task to the least expensive model capable of handling it. Principle, routing criteria and the role of the confidence score.",
      "inLanguage": "en",
      "datePublished": "2026-09-05",
      "dateModified": "2026-09-05",
      "author": {
        "@id": "https://www.optivalue.ai/#organization"
      },
      "publisher": {
        "@id": "https://www.optivalue.ai/#organization"
      },
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://small-language-model.ai/en/router-entre-petit-et-grand-modele"
      }
    },
    {
      "@type": "FAQPage",
      "@id": "https://small-language-model.ai/en/router-entre-petit-et-grand-modele#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Does routing between language models slow down answers?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Routing between language models does not necessarily lengthen latency (the delay between the request and the answer): directing a bounded task straight to a small model, faster at inference (the computation that produces the answer), can on the contrary reduce the delay. The overhead of the routing decision stays small compared with the computation of an answer."
          }
        },
        {
          "@type": "Question",
          "name": "What is escalation in routing between a small and a large language model?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Escalation is the redirection of a request, first handled by a small model, to a large model when the confidence score of the answer stays below the required threshold. It makes it possible to start with the most economical model without giving up reliability."
          }
        },
        {
          "@type": "Question",
          "name": "Does routing compromise data sovereignty?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Routing does not compromise sovereignty if it takes the sensitivity of the data into account: sensitive requests stay on a compact model hosted in the organisation's environment, and only non-sensitive requests can be routed elsewhere. Sensitivity is a routing criterion in its own right."
          }
        },
        {
          "@type": "Question",
          "name": "Do you need a confidence score to route between language models?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "A confidence score is not mandatory to route, but it makes routing measurable: without it, the escalation decision rests on intuition. A score from 0 to 100 attached to each answer turns routing into a controlled loop."
          }
        },
        {
          "@type": "Question",
          "name": "Is routing between language models reserved for large systems?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Routing between language models is not reserved for large systems: it becomes useful as soon as the requests diversify in nature or sensitivity. A homogeneous, low-stakes system can do without it; a mixed system gains in cost and control."
          }
        }
      ]
    }
  ]
}
</script>
