OHGROK / Integration guide
List available models
Discover models visible to your API key.
On this page
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.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | header | Required | Site API key. No request body. |
Request example
cURL
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" 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.
Illustrative structure — not a live receipt
{"object":"list","data":[{"id":"grok-4.5","object":"model"}]} 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.