Skip to Content

List models

Retrieves the list of available models.

Endpoint

GET https://gateway.mytokengate.com/v1/models

Request 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_KEY

Query Parameters

ParameterTypeDescription
typestringFilter by model type: text, image, audio, video
sub_typestringFilter 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

FieldTypeDescription
objectstringAlways “list”
dataarrayArray of model objects
data[].idstringModel identifier
data[].objectstringAlways “model”
data[].createdintegerUnix timestamp of model creation
data[].owned_bystringModel provider

Error Codes

CodeDescription
401Invalid or missing API key
429Rate limit exceeded
503/504Service temporarily unavailable
Last updated on