model parameter. The List models endpoint returns the models you can use, and Retrieve a model returns one of them.
1 The context window may change during the beta.
List models
Response
Retrieve a model
To get one model, request it by ID. The response is a single model object with the same fields, and an unknown or unavailable model returns404 with code model_not_found.
Model lifecycle
When a model is scheduled to shut down, itsshutdown_date is set. Plan to move to another model before that date; requests that name a model that no longer exists return 404.
To detect upcoming shutdowns automatically, check shutdown_date on the models you use, for example at application startup or in a scheduled job.