Small Local Model vs GPT for Routing: Use GPT Until Routes Settle, Then a Local Classifier With GPT Fallback
Rules, GPT-6 Luna, a local classifier and a local-first cascade each fit a different product. This guide matches them to route stability, privacy and monthly volume, with list-price costs from 1 million to 100 million requests.
Pick GPT as the router when routes are new or change often. Pick a small local classifier with GPT fallback when routes are stable, labelled examples exist and traffic passes several million requests a month. Put deterministic rules in front of either one for exact commands. On OpenAI's list prices, gpt-6-luna routes a short request for about $65 per million calls, so a local GPU only costs less above roughly 8 million requests a month. These are engineering judgments, because no published test compares the four designs on the same held-out requests.
A router assigns a route, which is a different job from choosing the answer model
Most routing questions are about route classification. A request arrives, and the router assigns one label from a fixed list of intents, tools or workflows, such as "refund", search_orders or the billing agent. OpenAI treats this as a task for smaller models. Its guide to building agents states that "a simple retrieval or intent classification task may be handled by a smaller, faster model."
A second job is model selection: choosing whether a cheap model or a strong model should write the answer. RouteLLM, an ICLR 2025 paper from researchers at UC Berkeley, Anyscale and Canva, studies this job. Its routers chose between GPT-4 and Mixtral 8x7B, and the authors report cost reductions of "over 2 times" without lower response quality on public benchmarks.
RouteLLM's result supports trying a lightweight router, but it does not show that a local classifier beats GPT on a fixed route list. GPT-4 was one of the answer models in the study, not a competing classifier. The authors also write that real traffic may differ from their benchmarks, and they recommend collecting a small amount of in-domain data. In their tests, the BERT and Llama 3 8B routers performed near random when trained on Chatbot Arena data alone. The authors attribute that result to high-capacity routers doing worse when training data is scarce.
The four router designs differ in data handling, setup work and cost shape
The four designs differ on the points that usually settle the choice. The prices come from OpenAI's and Runpod's list prices, and the cost column assumes a 600-token routing prompt with a 10-token label.
| Design | Data leaves your network | Setup work | Cost shape |
|---|---|---|---|
| Rules | No | Writing patterns for exact commands | No per-request fee |
| GPT-6 Luna router | Every request | A prompt with the route list | About $65 per million requests |
| Local classifier | No | Labelled data, training, a server | About $504 a month for one L4 |
| Local plus GPT fallback | Only low-confidence requests | Both of the above, plus a threshold | GPU cost plus GPT for each fallback |
Latency is left out of the table because comparable numbers have not been measured. OpenAI publishes no latency figure for gpt-6-luna. End-to-end p50 and p95 latency for these designs under realistic concurrency has not been published.
Route stability, privacy and volume decide which router fits each product
Each of the following defaults follows from those differences, and each one should be confirmed with a test on your own traffic.
- A team with no labelled routing data should start with rules plus
gpt-6-luna, and log every request and its final route as training data for later. - A product whose route list changes every few weeks should keep GPT as the router, because editing a prompt is faster than relabelling and retraining.
- A product with stable routes, a few thousand labelled examples and over 8 million requests a month should test a local classifier with GPT fallback against GPT alone.
- A product whose request text must not leave its network needs a fully local router, with fallback going to a person or a self-hosted model.
- A product that routes among tools with very long contexts should compare a per-decision price with Luna's per-token price at its real context length.
- A product that already knows the answer in code should not call a model at all, which OpenAI's latency guide puts as "Use application code when you already know the answer."
Rules handle exact commands at no per-request cost
Rules catch button clicks, slash commands and fixed phrases with no model call. They cost nothing per request and add no model latency. OpenAI's agent guide also lists rules-based protections, such as blocklists, input length limits and regex filters, as a guardrail layer.
Rules fail on paraphrases and new phrasing. They work as the first layer of any router, not as the whole router, except in products where users choose from a fixed menu.
GPT-6 Luna is the lowest-effort router and the baseline to beat
OpenAI's latency optimization guide suggests trying gpt-6-luna "for a focused task like routing a support ticket." Its model selection guide recommends Luna for "small, repeatable tasks." The model page lists $0.10 per million input tokens, $0.01 for cached input and $0.50 per million output tokens, and it supports structured outputs and function calling.
Three settings change what Luna costs and how a test should treat it:
- Luna defaults to medium reasoning effort, and OpenAI bills reasoning tokens as output tokens, so 200 reasoning tokens per call add $100 per million requests.
- Caching a fixed 400-token prompt at the $0.01 rate lowers a 600-token routing call from about $65 to about $29 per million requests.
- The model page lists a single snapshot,
gpt-6-luna, with no dated version, so every GPT evaluation must record the date on which it ran.
OpenAI's own advice for this step is to start with a capable model, establish a baseline, and then try smaller models or lower reasoning effort. Its latency guide recommends keeping "the fastest configuration that meets your quality target, including on difficult cases."
A local classifier needs labelled data and calibration before its confidence means anything
A local classifier keeps request text on your servers and charges no per-request fee. In exchange, it needs labelled examples, a server, monitoring and retraining whenever the route list changes.
One candidate with a versioned configuration is open-jev, an MIT-licensed project from the same GitHub organization that publishes Parsec's code. Version 0.5.0 of its openjev-sdk package was released on November 2, 2026. It scores a fixed list of options in one forward pass without generating text, and it offers three training methods:
- The default head method trains small heads on a frozen Gemma 3 4B model, which needs about 8 GB of GPU memory for the weights at 16-bit precision.
- The encoder method fully fine-tunes ModernBERT-large by default and serves the result on a CPU.
- The TOD method fine-tunes Gemma 4 12B with LoRA adapters on an NVIDIA GPU with at least 40 GB of memory.
A cascade only works when the local confidence scores are calibrated. According to the open-jev README, zero-shot Gemma probabilities are "not calibrated judgements." Its ticket-routing cookbook fits a temperature on a separate calibration split and serves with a threshold of 0.8. Raising the threshold lowers the error rate on the requests that the model keeps, and it sends more requests to fallback. Each route list carries a version number, and the SDK refuses to serve a model against a changed list.
The cookbook's results come from synthetic data. Its 1,200 generated tickets include 30 percent that mention two topics and 5 percent with wrong labels. The head method reached 97.0 percent team accuracy on 101 test tickets. That number shows the workflow running, not how the model performs on real traffic.
Local latency depends on hardware. The open-jev README reports about 90 ms per scoring request on its Apple silicon server. It also reports that the first forward pass after loading adds up to a second of warm-up, which a server that scales to zero pays on its first request.
Parsec, a small language model lab, sells a hosted decision model called TOD for the long-context tool case. TOD ranks the next action from a list that your code supplies and passes uncertain turns unchanged to the parent model. Parsec's TOD page lists a flat $0.30 per 1,000 decisions, with up to 48,000 tokens of context per decision. That is more than Luna's list price for a short routing prompt and less for very long prompts. The same page reports that TOD scored below its untrained base model on public JevBench, which Parsec says the next release will fix.
A cascade sends only uncertain requests to GPT, so its value depends on the fallback rate
A cascade runs rules first, then the local classifier, and sends requests below the threshold to GPT. The idea of trying cheaper models before expensive ones has a research history: FrugalGPT, a 2023 paper by Chen, Zaharia and Zou, described LLM cascades among its cost-cutting strategies. For route classification, the right fallback rate comes from your own risk-coverage curve.
In this flow, request text stays local until a request falls below the threshold, and permission is checked after the label is chosen.
incoming request
|
+-- rule matches? -------------- yes --> route label (stays local)
|
v
local classifier (stays local)
|
+-- confidence >= threshold ---------> route label
|
v below threshold
gpt-6-luna gets request text + route list (sent to OpenAI)
|
v
route label --> authorization check in your code --> action executes
Fallback requests pay both latencies, because they run the local model and then the GPT call. A higher fallback rate therefore raises p95 latency as well as cost.
A worked example shows the break-even point near 7.7 million requests a month
The example uses list prices and states every assumption. Each Luna routing call uses 600 input tokens and 10 output tokens at reasoning effort none, without caching, for $0.000065 per request. The local router runs on one NVIDIA L4 at Runpod's Secure Cloud price of $0.69 an hour, or $503.70 for a 730-hour month. The cascade assumes a 15 percent fallback rate to Luna. That rate is an assumption, not a measurement.
| Requests per month | Luna only | One L4, local only | L4 plus 15% Luna fallback |
|---|---|---|---|
| 1 million | $65 | $503.70 | $513.45 |
| 10 million | $650 | $503.70 | $601.20 |
| 50 million | $3,250 | $503.70 | $991.20 |
| 100 million | $6,500 | $503.70 | $1,478.70 |
One always-on L4 costs the same as Luna routing at about 7.7 million requests a month. A second L4 for redundancy moves the point to about 15.5 million. With a cached prompt at about $29 per million requests, the single-GPU point moves to about 17.4 million.
Several costs are missing from the example because nobody has priced them for this workload. Labelling, engineering time, monitoring and retraining are excluded, and at low volume they cost more than the GPU. Whether one L4 carries 100 million open-jev requests a month has not been measured. RouteLLM's BERT router handled 69.62 requests per second on one L4, which would be about 180 million requests in a 30-day month, but that figure comes from a different model and setup. OpenAI's Build tier for Luna allows 5,000 requests and 2 million tokens a minute by default. At 600 tokens per call, the token limit caps routing at about 3,300 calls a minute, so very high GPT volumes may need a higher usage tier.
A fair comparison keeps training, threshold and test data apart
No public evaluation compares rules, a local classifier, a GPT snapshot and a cascade on identical held-out routing requests. Per-route accuracy, cost-weighted errors, downstream task success and fallback rates for these designs have not been measured. A buyer can run the comparison in seven steps.
- Split labelled requests by customer into three sets for training, threshold selection and final testing, so that near-duplicates do not inflate the score.
- Put ambiguous, unfamiliar and newly added routes into the test set, since production traffic contains all three.
- Give each kind of misroute a business cost, so that a payment dispute sent to the FAQ bot counts as worse than a shipping question sent to billing.
- Plot a risk-coverage curve for the local model, and choose the threshold on the threshold set only.
- Score downstream task success as well as label accuracy. A November 12, 2026 arXiv paper by Kolluru and Duvvarapu found that similar classification F1 scores did not guarantee similar downstream behavior.
- Load-test at peak concurrency, and record queueing, cold starts, the network call, the fallback path, hardware, precision, candidate count and model version.
- Publish the label policy and the test harness with the results, so that the comparison can be rerun after a route or model change.
The router's label must pass a separate permission check before any action runs
A route label decides where a request goes, not whether an action is allowed. OpenAI's agent guide recommends rating each tool as low, medium or high risk, based on write access, reversibility, account permissions and financial impact. It recommends human oversight for actions such as canceling orders, authorizing large refunds and making payments.
That rule applies to every design in this guide. Rules, Luna, a local classifier and a cascade all hand a label to the same authorization code. High-risk routes can also use a higher confidence threshold, which sends more of those requests to GPT or to a person while the routine routes stay on the local model.
Sources
- OpenAI, A practical guide to building agents: https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
- OpenAI, Latency optimization: https://developers.openai.com/api/docs/guides/latency-optimization
- OpenAI, Model selection: https://developers.openai.com/api/docs/guides/model-selection
- OpenAI, GPT-6 Luna model page: https://developers.openai.com/api/docs/models/gpt-6-luna
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, Reasoning models: https://developers.openai.com/api/docs/guides/reasoning
- Ong et al., RouteLLM: Learning to Route LLMs with Preference Data (arXiv): https://arxiv.org/abs/2406.18665
- RouteLLM, full paper (HTML, v4): https://arxiv.org/html/2406.18665v4
- RouteLLM, ICLR 2025 conference paper: https://proceedings.iclr.cc/paper_files/paper/2025/file/5503a7c69d48a2f86fc00b3dc09de686-Paper-Conference.pdf
- RouteLLM, GitHub repository: https://github.com/lm-sys/RouteLLM
- Chen, Zaharia and Zou, FrugalGPT: https://arxiv.org/abs/2305.05176
- Kolluru and Duvvarapu, Small Language Models for Inference-Capability Routing: https://arxiv.org/abs/2611.16414
- open-jev, GitHub repository: https://github.com/daseinlabs/open-jev
- open-jev, Cookbook 01: ticket routing: https://github.com/daseinlabs/open-jev/tree/main/cookbooks/01-ticket-routing
- Runpod, Pricing: https://www.runpod.io/pricing
- Parsec, TOD: https://parseclab.ai/tod/