Skip to main content

List Models

POST
/models

Retrieve a list of available models.

cURL Example

curl --request GET \
--url 'https://api.hpc-ai.com/inference/v1/models' \
--header 'Authorization: Bearer <your_token_here>'

Authorization

The AccessToken must be included in the request as a header when making REST API requests, along with the Content-Type header. You can use the following format for authorization:

--header 'Authorization: Bearer <your_token_here>'
--header 'Content-Type: application/json'

Note: Replace your_token_here with your actual AccessToken. It contains information that allows the server to verify your identity and permissions.

Example Response

Success Response

FieldTypeDescription
objectstringThe type of the response object.
dataarrayA list of model objects, containing details about each model.
{
"object": "list",
"data": [
{
"id": "minimax/minimax-m2.5",
"object": "",
"created": 0,
"owned_by": "minimax"
},
......
]
}
{
"object": "list",
"data": [
{
"id": "minimax/minimax-m2.5",
"object": "",
"created": 0,
"owned_by": "minimax"
},
......
]
}