cli/resources/models/methods/retrieve/index.md +0 −54 deleted
File Deleted View Diff
1## Retrieve model
2
3`$ openai models retrieve`
4
5**get** `/models/{model}`
6
7Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
8
9### Parameters
10
11- `--model: string`
12
13 The ID of the model to use for this request
14
15### Returns
16
17- `model: object { id, created, object, owned_by }`
18
19 Describes an OpenAI model offering that can be used with the API.
20
21 - `id: string`
22
23 The model identifier, which can be referenced in the API endpoints.
24
25 - `created: number`
26
27 The Unix timestamp (in seconds) when the model was created.
28
29 - `object: "model"`
30
31 The object type, which is always "model".
32
33 - `owned_by: string`
34
35 The organization that owns the model.
36
37### Example
38
39```cli
40openai models retrieve \
41 --api-key 'My API Key' \
42 --model gpt-4o-mini
43```
44
45#### Response
46
47```json
48{
49 "id": "id",
50 "created": 0,
51 "object": "model",
52 "owned_by": "owned_by"
53}
54```