# List available models

Discover models visible to your API key.

`GET /v1/models`

<a id="authentication"></a>

## Authentication

Use Authorization: Bearer YOUR_API_KEY. The selected model must be enabled for that key’s group. JSON requests use Content-Type: application/json.

<a id="parameters"></a>

## Parameters



| Field | Type | Required | Description |
| --- | --- | --- | --- |
| Authorization | header | Required | Site API key. No request body. |

<a id="request"></a>

## Request example



```
export OHGROK_API_KEY='YOUR_API_KEY'

curl --fail-with-body --silent --show-error \
  'https://api.ohgrok.com/v1/models' \
  -H "Authorization: Bearer $OHGROK_API_KEY"
```

<a id="response"></a>

## Response structure

Read data[].id and use the exact ID in later requests. The list depends on the key and group; it is not a guarantee of current upstream capacity.

```
{"object":"list","data":[{"id":"grok-4.5","object":"model"}]}
```

<a id="errors"></a>

## Error handling

Read the HTTP status together with the returned error message. Check your key and group for authentication or model-access failures. Inspect balance and upstream limits for quota/rate errors; retain task IDs on timeouts.

- [Troubleshoot a request](/docs/errors/)

