Repository Public
1> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.23## Retrieve model45**get** `/models/{model}`67Retrieves a model instance, providing basic information about the model such as the owner and permissioning.89### Path Parameters1011- `model: string`1213### Returns1415- `Model object { id, created, object, 2 more }`1617 Describes an OpenAI model offering that can be used with the API.1819 - `id: string`2021 The model identifier, which can be referenced in the API endpoints.2223 - `created: number`2425 The Unix timestamp (in seconds) when the model was created.2627 - `object: "model"`2829 The object type, which is always "model".3031 - `"model"`3233 - `owned_by: string`3435 The organization that owns the model.3637 - `shutdown_date: optional string or null`3839 The date when the model will shut down, or null if not announced.4041### Example4243```http44curl https://api.openai.com/v1/models/$MODEL \45 -H "Authorization: Bearer $OPENAI_API_KEY"46```4748#### Response4950```json51{52 "id": "id",53 "created": 0,54 "object": "model",55 "owned_by": "owned_by",56 "shutdown_date": "2019-12-27"57}58```5960### Example6162```http63curl https://api.openai.com/v1/models/gpt-6-astra \64 -H "Authorization: Bearer $OPENAI_API_KEY"65```6667#### Response6869```json70{71 "id": "gpt-6-astra",72 "object": "model",73 "created": 1686935002,74 "owned_by": "openai",75 "shutdown_date": "2026-10-23"76}77```78