# List accessible models

OpenAI-compatible list of the models the virtual key can access.

GET `/v1/models`

## Responses

200 Model list

`object` string

`data` Model[]

Array of `Model`

`id` string

Model identifier; comes with the provider prefix (e.g. `openai/gpt-4o-mini`).

`object` string

`owned_by` string

Owner field; usually returned empty in the gateway list.

### Request

#### openai-python

```
from openai import OpenAI

client = OpenAI(
    base_url="https://gw-tr.gurubase.io/v1",
    api_key="SANAL_ANAHTAR",
)

for model in client.models.list():
    print(model.id)
```

#### python

```
import requests

response = requests.get(
    "https://gw-tr.gurubase.io/v1/models",
)
```

#### curl

```
curl -X GET "https://gw-tr.gurubase.io/v1/models"
```

#### js

```
const response = await fetch("https://gw-tr.gurubase.io/v1/models", {
  method: "GET"
});
```

### Response

#### 200

```
{
  "object": "list",
  "data": [
    {
      "id": "openai/gpt-4o-mini",
      "object": "model",
      "owned_by": ""
    }
  ]
}
```
