# The models each connection can run.

> One catalogue per connection, read from the provider's own list where it has one.
> https://koi.dog/docs/api/connections/list-models/

`GET /api/v1/models` · Scope: `read`

`error` says plainly why a live list could not be read. Answers in one page. No path or query parameters.

## Response.

One page of a list: `data` holds the items (each a `ModelCatalog`); `nextCursor` and `hasMore` lead to the next page. The example has placeholder values.

## Request.

```sh
curl https://app.koi.dog/api/v1/models \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch("https://app.koi.dog/api/v1/models", {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    "https://app.koi.dog/api/v1/models",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "data": [],
  "nextCursor": "string",
  "hasMore": false
}
```
