API, self-hosting or hybrid AI: the evidence to gather before choosing
TokenShift Executive Note
AI-translated from the original French version.

Before choosing between an API, a self-hosted model and a hybrid architecture, you need evidence: a trial that compares all three options with the current process, on the same cases and against the same acceptance criteria. The trial measures five things: the full cost per accepted case, human rework, errors, turnaround times and the destinations the data is allowed to reach.
These results are not enough until four functions have validated them: the business sets the quality bar, the data owners say where the data may go, operations confirm what they can support and finance checks the cost assumptions. An API bill or a server budget is no substitute for any of this evidence.
The same case, the same quality standard
So everything starts from a common unit of comparison: work delivered to the expected standard. Take a hypothetical example: an insurer uses AI to extract information from supporting documents before a case handler reviews the file. An acceptable answer must capture the correct amounts, link each piece of information to its source document and flag what is missing. Plausible values are not enough.
These criteria must stay the same for the API, the self-hosted model and any combination of the two. You can then calculate the full cost per accepted case: all the expenditure incurred to process the cases, including failed attempts, divided by the number of cases that meet the criteria. If a human correction makes a case acceptable, the time it takes goes into the calculation.
This ratio cannot be read on its own. You also need the share of cases accepted, the errors found after validation and turnaround times, particularly at peak periods. An option that is cheap on easy documents may leave teams with most of the difficult work. Hence the need for a single set of cases, both routine and difficult, compared with the existing process.
The cost of the model is not the cost of the service
That “full cost” still has to be genuinely full: for the insurer, the price of an API call or a server is only part of the spend, whichever option is chosen.
With an API, the company still owns integration, output checking, error handling and a fallback. Self-hosting adds capacity, monitoring and continuity to that list. Reserved capacity costs money even when it sits idle, and every new model version has to be evaluated before it goes into service. DeepSeek’s documentation for DeepInfer illustrates this: the released version supports offline inference, but a complete service requires other components. DeepSeek, 2026.
So the question is a practical one: who takes charge of these components, the incidents and the backup capacity? Steady volume can justify dedicated infrastructure, whereas with irregular traffic reserved capacity becomes less attractive. Neither case settles the matter without measured volumes, an expected service level and the cost of the team that delivers it. In every case, set-up or migration costs are spread over an explicit time horizon, the same for each option.
An option only exists if the data is allowed to go there
But a cheap, high-performing option is worthless if the insurer’s documents cannot be sent to it. In a regulated company, the permitted destinations for data narrow the list of options before their costs are even compared.
The recommendations of the CNIL, France’s data protection authority, call for examining the conditions under which the provider uses the data, and for involving the business, IT, security and data protection leads. CNIL, 2024. The review does not stop at the model: it also covers logs, backups and support access. Knowing where the model runs does not, on its own, tell you which routes the data takes. This applies to the API as much as to self-hosting.
Hybrid adds a decision to every case
A hybrid set-up therefore has to pass both tests at once, and adds a third: routing each case correctly. A combination might hand routine processing to the self-hosted model and send certain cases to an API or to a case handler. It is only worthwhile if the routing reliably identifies the cases that need different treatment, without creating more rework, delay or cost than it avoids. And it can only choose among the destinations permitted for the data concerned: an API that would handle a document better is not an option if that document cannot be sent to it.
Published research on routing does not supply this evidence on the company’s behalf. RouteLLM studies routing between models on MT Bench, with its own cost estimate. It demonstrates neither the quality achieved on a company’s own cases nor the economic case for a hybrid service in production. RouteLLM, 2025.
At the insurer, an illegible or contradictory document could trigger a check. The test must show that these cases are actually detected. A silent error on a misrouted case weighs as heavily in the decision as an avoided API call.
No comparative trial, no migration
So the answer lies in a trial, not a quote: run the same cases, routine and difficult, through the API, self-hosting, the hybrid set-up and the current process, against the same acceptance criteria. Measure accepted cases, human rework, errors, turnaround times and full cost, considering only the permitted destinations. Then vary the volumes and the share of complex cases to see whether the claimed advantage still holds. The business, the data owners, operations and finance each validate the part that concerns them. If this evidence is missing, do not fund a migration on the strength of a unit price or a public benchmark: measure first on a limited scope.