# List Models

Return the models currently available to the authenticated API key.

- Source: https://www.unifyllm.com/docs/api-reference/list-models/
- Language: en

## Endpoint

```http
GET https://api.unifyllm.top/v1/models
```

Use the authentication and headers shown in the request examples. Content-Type: application/json

## Parameters

| Field | Location | Type | Required | Description | Allowed values | Example |
| --- | --- | --- | --- | --- | --- | --- |

## Example 1

```json
{}
```

### cURL

```bash
curl --request GET \
  --url 'https://api.unifyllm.top/v1/models' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
```

### JavaScript

```javascript
const response = await fetch("https://api.unifyllm.top/v1/models", {
  method: "GET",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>"
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.get(
    "https://api.unifyllm.top/v1/models",
    headers={"Authorization": "Bearer <YOUR_API_KEY>"}
)
response.raise_for_status()
print(response.json())
```

## Example 2

```json
{}
```

### cURL

```bash
curl --request GET \
  --url 'https://api.unifyllm.top/v1/models' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
```

### JavaScript

```javascript
const response = await fetch("https://api.unifyllm.top/v1/models", {
  method: "GET",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>"
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.get(
    "https://api.unifyllm.top/v1/models",
    headers={"Authorization": "Bearer <YOUR_API_KEY>"}
)
response.raise_for_status()
print(response.json())
```

## Response examples

### Example 1 — HTTP 200

```json
{
  "data": [
    {
      "id": "az/claude-sonnet-4-20250514",
      "object": "model",
      "created": 1626777600,
      "owned_by": "custom",
      "supported_endpoint_types": [
        "anthropic",
        "openai"
      ]
    },
    {
      "id": "az/claude-sonnet-4-20250514-thinking",
      "object": "model",
      "created": 1626777600,
      "owned_by": "custom",
      "supported_endpoint_types": [
        "anthropic",
        "openai"
      ]
    }
  ],
  "object": "list",
  "success": true
}
```
