Home/Docs/Models and model idsModels and model idsThe catalogue changes: models are added, retired and repriced. Read it at runtime instead of hardcoding a list, and use the exact id the API returns.List the catalogueGET /v1/models returns every live model with its id, display name and context window. It needs the same Authorization header as every other call and is cheap enough to call at start-up or cache for an hour.name: the id to send in requests, including the provider prefixcontext window: the maximum prompt plus completion budgetvariants: some families carry suffixes for a different behaviour, and each suffix is a separate idVendor names are not gateway idsThe vendor's own model names are not valid here. deepseek-chat, gpt-4o and claude-3-5-sonnet are names from other services; on this gateway they return 404 because nothing by that id is served.That is deliberate: silently mapping an old name to whatever model looks similar would bill you for a model you did not choose. Read the id from the catalogue and the question disappears.Choosing a modelPrice and context window are on the pricing page for every model, and the input price spread between the cheapest and the most expensive model is around thirty times. The practical default is the cheapest model that handles the work, with the expensive one reserved for hard cases and final review.Context is a budget, not a target: a million-token window does not make a million-token prompt cheap, because input is metered too.When a model disappearsModels get retired. If your code reads the model name from configuration rather than source, switching is one line; if it is hardcoded in twenty files, retirement becomes an outage. Keep the id in one place and treat it as configuration.Related pagesAPI authenticationChat completionsErrors and retries