List models
Retrieves the list of available models.
Endpoint
GET https://gateway.mytokengate.com/v1/modelsRequest Example
curl --request GET \
--url https://gateway.mytokengate.com/v1/models \
--header 'Authorization: Bearer <token>'Authentication
All requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEYQuery Parameters
| Parameter | Type | Description |
|---|---|---|
| type | string | Filter by model type: text, image, audio, video |
| sub_type | string | Filter by sub-type without setting type: chat, embedding, reranker, text-to-image, image-to-image, speech-to-text, text-to-video |
Response
{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1234567890,
"owned_by": "openai"
},
{
"id": "claude-sonnet-4-6",
"object": "model",
"created": 1234567890,
"owned_by": "anthropic"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
| object | string | Always “list” |
| data | array | Array of model objects |
| data[].id | string | Model identifier |
| data[].object | string | Always “model” |
| data[].created | integer | Unix timestamp of model creation |
| data[].owned_by | string | Model provider |
Error Codes
| Code | Description |
|---|---|
| 401 | Invalid or missing API key |
| 429 | Rate limit exceeded |
| 503/504 | Service temporarily unavailable |
Last updated on