Smart routing
The cheapest model that clears the bar.
A router is the difference between an AI platform and an AI bill. ThaiGPT+ classifies every request, scores it against what each model in the family can actually do, and sends it to the smallest one that will get it right — then checks the answer and escalates if it did not. This page is how that decision is made, and what you are allowed to force.
Four decisions, before a token is generated
Which model
Lite for a rewrite, Base for most things, Pro when the context does not fit, Vision when there is an image, Voice when there is audio, Reason when a human has to audit the chain.
Where it runs
On the device if the device can do it, in-country if it cannot, and nowhere at all if the workspace has pinned a region the request would leave.
How much it costs
The router knows the price of every model in baht and the balance left on the account. A cheap request is not sent to an expensive model to be safe.
Whether to escalate
The first answer is checked against the request. A failed check re-routes upward and says so in the response — you see that it happened, and what it cost.
What it reads
Eight signals, none of which require you to describe your request. All eight are visible in the response, so a routing decision is something you can argue with rather than something that happens to you.
Task class
Draft, summarise, translate, extract, classify, reason. Inferred, and overridable.
Script and dialect
Central Thai, Isan, Kam Mueang, Pak Tai, mixed Thai-English, or Thai written in Latin letters.
Modality
Text, image, scanned PDF, audio. An image in the request rules out every text-only model.
Context length
Measured with the Thai tokenizer, not estimated from character count — which is how foreign platforms get this wrong.
Sensitivity
A Thai national ID, a patient record, a tax number. Detected locally; it pins the route before the request is sent anywhere.
Connectivity
Offline, data-saver, or full. The router degrades the model rather than the answer.
Budget
Remaining prepaid baht, and the per-request ceiling the account set.
Latency requirement
A voice reply needs a first token in under a second. A nightly batch does not.
The routing table
Illustrative. The live table is served from the platform and changes as models are added — which is the point of not naming a model in your client.
A route it is allowed to refuse
Every other routing layer optimises for cost and latency. This one has a third axis, and it is the one an institution is actually buying: a workspace can declare that its requests never leave th-bkk-1, and the router will return an error rather than quietly find a model somewhere else. A refusal is a feature. It is also the only version of data residency that survives contact with a router.
409 route_forbidden · workspace pinned to th-bkk-1The escalation ladder
Escalation is visible and billed at what it cost, not at the top model's rate. If the router was wrong, you can see that it was wrong.
Each step is only taken if the previous answer fails its own check.
And you can always override it
Pass a model name and the router steps aside. Pass a policy and it obeys that instead. Routing is a default, not a cage — but the default is what 81% of calls in the pre-release actually used.
POST /v1/messages
{
"model": "auto", // default: the router decides
"route": {
"region": "th-bkk-1", // refuse rather than leave
"max_baht": 0.75, // per-request ceiling
"prefer": "cheapest_passing" // or "fastest" | "best"
}
}
// The decision comes back with the answer, every time:
// { "routed_to": "ThaiLLM-Base", "considered": ["Lite", "Base", "Pro"],
// "reason": "context 4.1k > Lite 8k window at 0.62 confidence",
// "escalated": false, "region": "th-bkk-1", "usage": { "baht": 0.11 } }References
Background reading on multimodal models, from primary documentation and the papers the field is built on. External links, not affiliated with ThaiGPT+.
2024 — routing between a strong and a weak model, and how much it saves.
arXiv 1701.06538Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer2017 — routing inside a model rather than in front of it, and the ancestor of the idea.
CloudflareAI Gateway — Cloudflare documentationPractical documentation for putting a routing and caching layer in front of models.
IBMWhat is a multimodal LLM? — IBMThe clearest short definition of a multimodal large language model and what it is for.
Program předverze
Vyberte si, jak se přidáte.
Otevřené jsou tři skupiny. Výběr jedné nastaví formulář níže — tam jej můžete změnit.
Předverze · registrace otevřena
Přihlaste se do předverze.
Tři pole. Řekněte nám, kdo jste a kam psát, a jakmile bude pozvánka připravená, pošleme e-mail.
- Tři pole, nic si nemusíte dohledávat
- Dva souhlasy, oddělené, ani jeden předem zaškrtnutý
- Místo ve frontě hned
Funguje na 3G · ภาษาไทย / English