Loading video...

Video Failed to Load

Go Home

Introducing virtual models on AI Gateway. Use a single virtual model ID across agents to: • Centrally manage model strings and configs • Immediately update to new models • Enforce Zero Data Retention Read the blog post →

68,865 views • 12 days ago •via X (Twitter)

22 Comments

Hershal Rao's profile picture
Hershal Rao12 days ago

now i can break all my agents simultaneously with one click

RobertGotuje's profile picture
RobertGotuje12 days ago

finally an env var with a blog post

Vini Ensina | Claude Code & IA's profile picture
Vini Ensina | Claude Code & IA12 days ago

one gotcha before you repoint a virtual model to another lab: provider options are per provider, so an anthropic-only setting just stops applying on openai. create vmc/coding-agent-candidate on the new model, run evals there, then edit the real one

Max Petrusenko's profile picture
Max Petrusenko12 days ago

an alias that resolves on your side means the model can change under a caller without a deploy. log the resolved model id on every request, or the first sign of a swap is a batch of runs that suddenly read differently. what does the alias return when the target model is down?

ShadowAguy's profile picture
ShadowAguy12 days ago

beats find and replace every time Anthropic updates a date.

Deep's profile picture
Deep12 days ago

one central model name beats ten agents with hardcoded strings.

Adrian Castellar's profile picture
Adrian Castellar12 days ago

Model IDs hardcoded in every agent config was never going to last. A layer that resolves them makes sense.

Mohammed S.'s profile picture
Mohammed S.12 days ago

Can I replay a failed run with the exact model config it used? Otherwise I might be debugging yesterday's failure with today's settings.

one.dyor's profile picture
one.dyor12 days ago

baking the model string into every agent is the real lock-in. a virtual id is just config you can flip

The SI Maximalist's profile picture
The SI Maximalist12 days ago

A single model ID across agents is a lovely way to retire the “which config still points at the old model?” scavenger hunt

Aryah Oztanir's profile picture
Aryah Oztanir11 days ago

gateway is 16x smaller than OR right? and they are the second biggest comp, no? nuts

David T Kramaley's profile picture
David T Kramaley12 days ago

nice, gives a layer to swap models and enforce retention policies

Véu 👁️'s profile picture
Véu 👁️12 days ago

The strong part is precedence: virtual model settings win over request settings, so an agent can't disable ZDR or pick its own fallbacks. Model governance moves from code review into the gateway. The candidate-ID pattern for evals before switching production is a nice touch.

Kizuno18's profile picture
Kizuno1812 days ago

virtual model IDs solve the biggest operational nightmare of fleet-scale agent deployments: configuration coupling. 1. decoupling agent code from upstream lifecycle churn hardcoding specific model strings across dozens of agent services means every model deprecation or version bump requires 30 PRs and redeploys. routing through semantic virtual IDs (e.g. fast-triage, code-orchestrator) moves model selection from code to runtime configuration. 2. dynamic failover without session tear-down if an upstream provider has a regional outage or hits a 429 rate limit mid-task, an agent without a gateway simply crashes. virtual models enable instant circuit-breaking: transparently rerouting the request to an equivalent provider with zero state loss and zero client restarts. 3. centralized zero data retention (ZDR) policy enforcement you can't rely on individual developers or subagents to remember to pass proper privacy flags. enforcing ZDR and token budgets at the gateway boundary guarantees organizational compliance before requests ever leave your VPC. dynamic proxying is mandatory once you move beyond toy scripts to 24/7 autonomous workloads

Ted's profile picture
Ted12 days ago

what if my users don’t want to pay api prices

Ankesh | Thinking AI's profile picture
Ankesh | Thinking AI12 days ago

Model aliases fix the most boring real problem in AI teams: someone's prod still pinned to last year's model.

ReignSwords's profile picture
ReignSwords12 days ago

The useful question is governance, not convenience: can a virtual model be pinned and rolled out gradually, or does 'immediately update' mean every agent silently switches at once? One ID is great until a model change alters behavior with no code diff to blame.

Vlad Gerasimchuk's profile picture
Vlad Gerasimchuk12 days ago

One virtual model ID across agents is a clean abstraction. Swap models without rewriting code. That is how agent systems stay flexible.

Code With Jerry | AI Tips's profile picture
Code With Jerry | AI Tips12 days ago

One model ID to manage configs, switch models, and enforce zero data retention makes running multi-agent systems a lot simpler.

Lachy's profile picture
Lachy12 days ago

for the zero data retention part: if the model a virtual id points at has no zdr route, does the request fail outright or quietly get served somewhere else?

William Lopez-Cordero's profile picture
William Lopez-Cordero12 days ago

@bot take a look at this

XYO's profile picture
XYO11 days ago

The upgrade checklist would like to apply for early retirement.

Related Videos