Platform
Why your code names an alias, not a model
Models improve every few months. Your application should not have to change when they do. How aliases keep the model behind the gateway replaceable.
·4 min read·By Matca
Key points
- Your code calls an alias such as matca/dutch-rag-default, not a specific model.
- When a better model passes the evaluation, Matca moves the alias. Your code stays the same.
- GET /v1/models shows the aliases and agents your key may use.
- The same mechanism is what makes an exit workable.
What is an alias?
An alias is a stable name for a job, not for a model. In a Matca call the model field carries an alias, such as matca/dutch-rag-default for the Dutch-language assistant or bge-m3 for embeddings. Which open-weight model answers behind that name is a platform decision. [1]
Why not name the model directly?
Because the model is the part that changes fastest. A model name written into twenty services means twenty changes, twenty reviews and twenty releases every time something better appears. With an alias the change happens once, in one place.
| Aspect | Model name in code | Alias in code |
|---|---|---|
| A better model arrives | Change and release every service | The alias moves, code untouched |
| Who decides | Each team, separately | One evaluation, one owner |
| Leaving the supplier | Rewrite every call | Point the alias elsewhere |
What happens when a better model arrives?
Matca moves the alias after the evaluation. [1] The order matters: the candidate is tested first, and only then does the name point to it. For the Dutch-language assistant that test includes your own Dutch test questions. [2]
How do you see what a key can use?
GET /v1/models returns the aliases and agents a key may use. Agents follow the same pattern: the model field is agent/<name>, and you call an agent like a model. An agent's answer may take a few minutes. [1]
Every key carries your organisation's limits: requests per minute, tokens per month and a monthly budget in euros. The gateway answers 401 for an unknown or revoked key, 429 at the rate limit and 402 once the budget is spent, so your code knows what is going on. [1]
How fast do models really change?
Faster every year. Trackers report that model lifecycles have shortened from 18 to 24 months down to 6 to 12 months. [4] One count found 40 model IDs at the three largest closed-model providers carrying a retirement date in 2026 alone. [5] Notice periods of around 60 days are common. [7]
The platform matters as much as the model. In 2026 the same model version was retired four to five months apart, depending on which cloud served it. If a production process depends on one model version, someone else's calendar decides when you migrate. [6]
What changes when the models are open-weight?
The retirement date becomes your decision. An open-weight model in your own environment keeps answering until you replace it. The alias then serves a different purpose: not surviving a forced shutdown, but adopting a better model on your own schedule, after your own test.
What does a call look like?
A call names three things: the address of your environment, your key and the alias. With the Python SDK you create a client with an API key and a base URL, then call chat with matca/dutch-rag-default and your messages. The answer carries the content and the token usage. [1]
There are two SDKs: matca for Python (3.11 or newer, httpx its only dependency) and @matca/sdk for TypeScript (Node 20 or newer, no dependencies). They live in your environment's package registry, not in the public registries, and report their version to the gateway so Matca can say when an update is due. [1]
How should a team work with aliases?
- Name the alias after the job, not after the model.
- Keep your own test questions with expected answers, and rerun them when an alias moves.
- Handle the gateway's status codes explicitly. MatcaError.status carries 401, 402, 429 or 5xx, and is 0 when the gateway could not be reached. [1]
- Never copy a model name into application code.
- Record which alias each process uses, so an answer can be traced to a model.
What stays your responsibility?
An alias removes release work, not judgement. A new model may phrase things differently, be stricter about sources or handle an edge case another way. That is why the order is evaluation first and alias second, and why your own test questions belong in that evaluation.
Why does this matter for sovereignty?
An alias is also an exit mechanism. If your code depends on a name rather than on one supplier's model, the model can be replaced, moved to your own data centre or excluded by policy without touching the application. Matca records an origin policy per client: a client that excludes models of a certain origin picks an alternative in the same environment. [3]
Frequently asked questions
Do we change code when the alias moves?
No. Your code names the alias, and the alias keeps its name. [1]
Does streaming work through an alias?
Yes, for chat: set stream to true. An agent returns its answer in one piece. [1]
How do we get a key?
Matca issues and revokes keys from the console. A key is shown once, when it is issued. [1]
Sources
- [1]The Matca API and the SDKs for developersMatca
- [2]Matca, the sovereign AI platform for banks and high techMatca
- [3]What is sovereign AI? Definition, levels and checksMatca
- [4]When the Model Retires: An Empirical Study of LLM Migration in Open-Source ApplicationsarXiv, 2026
- [5]Model Deprecation: Build LLM Apps That LastDeepInfra
- [6]Model Deprecation: notice windows across platformsberi.net
- [7]Model Deprecations: An API Sunset Survival PlaybookDigital Applied