## List models

`$ openai models list`

**get** `/models`

Lists the currently available models, and provides basic information about each one such as the owner and availability.

### Returns

- `ListModelsResponse: object { data, object }`

  - `data: array of Model`

    - `id: string`

      The model identifier, which can be referenced in the API endpoints.

    - `created: number`

      The Unix timestamp (in seconds) when the model was created.

    - `object: "model"`

      The object type, which is always "model".

    - `owned_by: string`

      The organization that owns the model.

  - `object: "list"`

### Example

```cli
openai models list \
  --api-key 'My API Key'
```

#### Response

```json
{
  "data": [
    {
      "id": "id",
      "created": 0,
      "object": "model",
      "owned_by": "owned_by"
    }
  ],
  "object": "list"
}
```
