List Models
This method lets you list the currently available models. It further provides basic information about each model, such as the model type and the inference engine that is serving the model.
This method is compatible with the OpenAI endpoint for listing models.
Request
URI
GET
https://{api_host}/api/v1/compatibility/openai/v1/models
COPY
Responses
200
Successful Response
Returns
OpenAIModelListResponse
of type(s)
application/json
{
"object": "string",
"data": [
{
"id": "string",
"object": "string",
"created": 0,
"owned_by": "string",
"model_type": "string",
"model_engine": "string"
}
]
}
string
object
Optional
Constraints:
default: list
Object type, which is always list
.
array of
object
data
Required
List of model endpoints.
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/v1/compatibility/openai/v1/models
Open Ai Compatibility Operations
GET
List Models
POST
Create Embeddings
POST
Create Completion
POST
Create Chat Completion