---
title: "List employees as OpenAI-compatible model IDs"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › openai-compatible

`GET /models`

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`, format `API key`
- `cookieAuth`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/models' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/models';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/models"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

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

- `object` (`listOpenAiModels.response.200.object`; string, required)
- `data` (`listOpenAiModels.response.200.data`; array<object>, required)
  - `id` (`listOpenAiModels.response.200.data.id`; string, required)
  - `object` (`listOpenAiModels.response.200.data.object`; string, required)
  - `created` (`listOpenAiModels.response.200.data.created`; integer, required)
    - min 0; max 9007199254740991
  - `owned_by` (`listOpenAiModels.response.200.data.owned_by`; string, required)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listOpenAiModels.response.401.error`; string, required)
- `ok` (`listOpenAiModels.response.401.ok`; boolean, optional)
- `detail` (`listOpenAiModels.response.401.detail`; string, optional)
- `code` (`listOpenAiModels.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/openai-compatible/listOpenAiModels/index.md
