Models API

List models visible to an API Key and the endpoint types each model supports

The Models API lists models visible to the current API Key and the endpoint types each model supports. Before calling other capabilities, use this endpoint to confirm available models.

Endpoints

MethodPathDescription
GET/v1/modelsList models visible to the current token

Model selection: The model field in other request bodies must be a data[].id returned by this endpoint. supported_endpoint_types indicates which capabilities the model can use.


GET /v1/models

List models visible to the current token.

Auth: Bearer Token

Request: No request body

Request example (curl)

curl https://www.guid.ai/v1/models \
  -H "Authorization: Bearer sk-xxx"

Response body

HTTP 200

{
  "success": true,
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1626777600,
      "owned_by": "openai",
      "supported_endpoint_types": [
        "openai",
        "openai-response",
        "image-generation"
      ]
    },
    {
      "id": "agnes-video-v2.0",
      "object": "model",
      "created": 1626777600,
      "owned_by": "agnes-ai",
      "supported_endpoint_types": [
        "openai-video"
      ]
    }
  ]
}

Response fields

FieldTypeDescription
successbooleanWhether the call succeeded
objectstringAlways list
dataarrayModel list
data[].idstringModel ID; use this value as model in other endpoints
data[].objectstringAlways model
data[].creatednumberUnix timestamp (seconds)
data[].owned_bystringModel ownership identifier
data[].supported_endpoint_typesstringSupported endpoint types
data[].tagsstringModel tags (if any)

supported_endpoint_types values

ValueDescriptionRelated docs
openaiChat / CompletionsText API
openai-responseResponses chatText API
image-generationImage generation / editingImages API
openai-videoVideo generationVideos API

Failure response

HTTP 200 (business failure)

{
  "success": false,
  "message": "get user group failed"
}
FieldTypeDescription
successbooleanAlways false
messagestringFailure reason

See Gateway extended errors for the error format.