~author/family-latest slugs always resolve to the newest concrete model in a given family, so you can ship code against a stable alias and pick up new releases without redeploying.
Overview
When a model author ships a new version (for example Anthropic releasingclaude-opus-4.8), OpenRouter automatically starts routing ~anthropic/claude-opus-latest to it. Older code calling the alias keeps working — it just runs on the newest version.
This is ideal for:
- Product teams who want to always use the best-in-class model from a specific author without monitoring release notes.
- Internal tools and prototypes where you care about “latest Claude Opus” more than a specific version pinned for reproducibility.
- Rolling migrations where you want to defer version pinning until after a release has stabilised.
Usage
Send a chat completion request with a~author/family-latest slug as the model:
Response
The response’smodel field reflects the concrete model that actually served the request, not the alias you sent. This makes it trivial to log or alert on version rollovers:
How It Works
Each~author/family-latest slug is mapped to a model family on OpenRouter. When a request comes in:
- Slug recognition: OpenRouter sees the
~prefix and identifies which family the alias points to (for example~anthropic/claude-opus-latest→ the Claude Opus family). - Target selection: The newest visible model in that family is selected. When a new version ships, it takes over automatically, with no client changes required.
- Request forwarding: Your request is forwarded to the resolved model and routed across providers exactly as if you’d called that concrete slug directly.
- Transparent reporting: The response’s
modelfield reports the concrete model that served the request (for exampleanthropic/claude-opus-4.8), so you can always tell which version answered any given call.
Pricing and Capabilities
~author/family-latest rows on the models page and in /api/v1/models responses report the pricing, context length, modalities, and supported parameters of the target they currently resolve to — not a frozen snapshot. This way:
- Clients that list models for their users see accurate per-token prices.
- Capability-gated flows (for example “only offer this model for vision requests”) see up-to-date modalities.
- Cost dashboards reflect the real rate charged, because requests are billed at the concrete model’s price.
Compatibility Contract
~latest slugs trade exactness for continuity: your existing request shape keeps working when the alias retargets, even if the new model doesn’t support every parameter you send. Instead of rejecting the request, OpenRouter remaps unsupported reasoning parameters to the nearest supported value.
Concretely, if the alias starts pointing at a model that requires reasoning:
reasoning: { effort: "none" }is upgraded to the lowest effort the model supports (for exampleminimalorlow).reasoning: { enabled: false }is flipped to enabled, again at the lowest supported effort.reasoning: { max_tokens: 0 }is treated the same way, and the zero token budget is dropped.
~latest slugs. Concrete model slugs keep strict validation: sending effort: "none" to a model that mandates reasoning returns a 400. If you need exact parameter semantics, pin a concrete slug.
Separately from the ~latest contract, unsupported non-none efforts are mapped to the nearest supported level on all slugs (for example xhigh → high on a model without xhigh).
Use Cases
- Always-on assistants: Point user-facing agents at
~anthropic/claude-sonnet-latestand get new releases for free. - Evaluation harnesses: Benchmark “the latest” model per author without editing configs.
- Enterprise pilots: Share a slug with a partner and upgrade them in place when a newer model ships.
Limitations
- Versions can change at any time: When a newer model is rolled in as the latest target, subsequent requests resolve to it. If your application requires a fixed version for reproducibility (for example in regression tests), use the concrete model slug instead.
- Only
latest: The router always resolves to the newest eligible model. There is no built-in way to pin to “second newest” or to roll back through the alias — to downgrade, switch to a concrete slug. - Aliases and hidden models are excluded: The router never resolves to another alias slug or to models that have been hidden.
Pinning to a Specific Version
When you need reproducibility, bypass latest resolution by calling the concrete model slug directly:model field (see above) or in the activity log for the request.
Related
- Auto Router - Cross-model intelligent selection (paid models)
- Free Models Router - Route to available free models
- Model Variants -
:free,:nitro,:thinking, and other suffixes - API Reference: Chat Completions