Yaha AI Gateway
Routing

Model aliases

Latest-model aliases and catalog mappings

Model aliases

Yaha resolves latest-model aliases before allowlist checks:

Alias patternExampleBehavior
provider/family-latestopenai/gpt-latestNewest active catalog model matching the family
~provider/family-latest~anthropic/claude-sonnet-latestSame (tilde prefix ignored)

Superadmin catalog aliases

Platform operators can define explicit mappings in model_aliases (API: GET/POST/PATCH /v1/admin/platform/model-aliases). Aliases sync to the gateway catalog snapshot on refresh.

Examples

{
  "model": "~openai/gpt-latest",
  "messages": [{ "role": "user", "content": "Hello" }]
}

The resolved concrete model must still appear on your project allowlist.

On this page