Change your LLM model without redeploying: aliases

Pin a name you choose to a catalog model, call it as the model id, repoint it with no deploy, list aliases with a key, and restore an earlier target by hand.

Checked 2026-11-22

·All posts·Models

An organization alias on UplinkSwitch is a name you choose, for example prod-chat, pinned to one catalog model; requests to https://api.uplinkswitch.com/v1 that send the alias as model run on whatever it points to at that moment. Repointing the alias changes the model for every caller without a code change or a deploy.

prod-chat in this page is an invented, user-defined name. It is not a catalog model and will not work on your account until you create it.

Create the alias, then call it

Aliases are managed on the console's Aliases page: enter a name, pick the target model, save. The rules the gateway enforces:

  • A name is 1 to 64 characters of lower-case letters, digits, dots, dashes and underscores, and starts with a letter or digit.
  • A name that is already a catalog model id is rejected. A real model id always wins, so an alias can never shadow one.
  • The target has to be a model the catalog serves; an unknown id is rejected.

The application then uses the alias like any model id:

python
from openai import OpenAI
import os

client = OpenAI(base_url="https://api.uplinkswitch.com/v1",
                api_key=os.environ["UPLINKSWITCH_API_KEY"])
reply = client.chat.completions.create(
    model="prod-chat",  # your alias, not a catalog id
    messages=[{"role": "user", "content": "One sentence on idempotency."}],
)
print(reply.model, reply.choices[0].message.content)

Each response also carries headers naming the alias that was requested and the model that actually served it, so a log line can record both.

See which aliases a key can use

bash
curl -s https://api.uplinkswitch.com/v1/models \
  -H "Authorization: Bearer $UPLINKSWITCH_API_KEY" \
  | jq '.data[] | select(.owned_by == "alias") | {id, target: .uplink.alias_of}'

GET /v1/models lists the models the key may call and then the organization's aliases, each with the model it stands for in uplink.alias_of. A key with a model allowlist may name the alias or the model in that list.

Repoint it, and put it back

Say prod-chat points at gpt-6.1-sol and you want to try claude-sonnet-5-5:

Candidate targetInput per 1MOutput per 1MCatalog status, 2026-11-24
gpt-6.1-sol$0.582$2.91ok
claude-sonnet-5-5$1.164$2.91ok

Change the target on the Aliases page. The alias is resolved as each request arrives, so allow a short moment before every new request sees the new target. An alias has no price of its own: a request is billed at the rate of the model that served it.

Every create, change and delete is kept in the alias's history, which the same console page shows. Restoring is manual: read the previous target from the history and set it again. There is no automatic rollback, no traffic split between two targets and no guarantee about requests already in flight, so treat a repoint like any production change and watch the first responses.

Aliases are a deliberate, human-made switch. Choosing a model per request by rule is the auto router, and moving to another route when one fails is routing and failover.

Questions and answers

No. The gateway refuses an alias whose name is a model id, and a model id takes precedence in any case, so calling a real id always reaches that model.

Call GET /v1/models with the key. Alias entries come after the models, are marked as owned by "alias", and name their current target in uplink.alias_of.

Open the alias in the console, find the earlier target in its change history and save the alias with that model again. The restore is itself recorded as a new change.
Join on Telegram
Help