# List models

`GET https://my.neuronai.uz/api/v1/models`

Справочник API › Языковые модели

Lists the chat models available to your account.

**Authentication:** `Authorization: Bearer <API key>`, a key with `llm:read`.

## Ответ (200, `application/json`)

The chat models, in OpenAI's list shape. Send a model's `id` as `model`. `created` is always `0`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | Yes |  |
| `data` | object[] | Yes |  |
| `data[].id` | string | Yes |  |
| `data[].object` | string | Yes |  |
| `data[].created` | integer | Yes |  |
| `data[].owned_by` | string | Yes |  |

```json
{
  "object": "list",
  "data": [
    {
      "id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41",
      "object": "model",
      "created": 1794912659,
      "owned_by": "neuronai"
    }
  ]
}
```

### Заголовки

| Header | Type | Description |
| --- | --- | --- |
| `X-Request-Id` | string | Identifies this request. A JSON body carries it as `request_id` too; quote it to support. |
| `X-RateLimit-Limit` | integer | The requests a minute the rate limit on this endpoint allows. Sent once the limit has counted the request, so not when the key itself is refused. |
| `X-RateLimit-Remaining` | integer | How many of them are left this minute. |

## Ошибки

Every error has the same JSON shape:

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_request",
    "message": "The request is malformed or failed validation.",
    "param": null
  },
  "request_id": "7c4a8d09-ca37-4f3c-9e2b-1b0f3c2a9d41"
}
```

| Status | Meaning |
| --- | --- |
| 401 | The API key is missing or not recognized (`invalid_api_key`), revoked (`api_key_revoked`), disabled (`api_key_disabled`) or expired (`api_key_expired`). |
| 403 | The key lacks the permission this endpoint needs (`insufficient_permissions`), or the client IP is not in its allowlist (`ip_not_allowed`). |
| 429 | A rate or concurrency limit was reached (`rate_limit_exceeded`, `concurrency_limit_exceeded`). Retry after `Retry-After` seconds. |
| default | Any other error, in the same shape, such as `server_error` (500) or `service_unavailable` (503). |

## Examples

### TypeScript SDK

```typescript
import {NeuronAI} from "@naiuz/sdk";

const client = new NeuronAI();

const models = await client.models.list();

for (const model of models.data) {
    console.log(model.id);
}
```

### Python SDK

```python
from naiuz import NeuronAI

client = NeuronAI()

models = client.models.list()

for model in models.data:
    print(model.id)
```

### PHP SDK

```php
$client = new \Naiuz\NeuronAI();

$models = $client->models->list();

foreach ($models->data as $model) {
    echo $model->id, PHP_EOL;
}
```

---

Source: https://docs.neuronai.uz/ru/api/reference/language-models/list-models
