v2

latestOpenAPI 3.1.02026-07-2670186350.6 KB
models

Create Model Alias

Create a model alias with fallback models for the organization that owns the API key.

A model alias allows you to define a name that resolves to an ordered list of fallback models. For example, you could create an alias called "sonnet-4" that falls back to ["anthropic/claude-3-5-sonnet-latest", "anthropic/claude-3-5-sonnet-20241022"].

post/models/aliases

Request body

namestring required

The name of the model alias

fallback_modelsstring[] required

Ordered list of model names to try as fallbacks

descriptionstring nullable

Optional description of the model alias

Response

Successful Response

idstring uuid required

The ID of the model alias

namestring required

The name of the model alias

fallback_modelsstring[] required

Ordered list of model names to try as fallbacks

descriptionstring nullable

Optional description of the model alias