API for Listing the Current Model List
Function
Lists the current model list.
Format
Operation type: GET
URL: https://{ip}:{port}/v1/models
Replace {ip} and {port} with the IP address and port number of the service plane, that is, ipAddress and port.
Request Parameters
None
Usage Example
Request example:
GET https://{ip}:{port}/v1/models
Response example:
{
"object": "list",
"data": [
{
"id": "model-id-0",
"object": "model",
"created": 1686935002,
"owned_by": "MindIE Server"
}
]
}
Response status code: 200
Output Description
Parameter |
Type |
Description |
|
|---|---|---|---|
Object |
String |
Return result type. The default value is list. |
|
data |
List |
Model list. |
|
- |
id |
String |
Model name. |
Object |
String |
Data result type. The default value is model. |
|
created |
Integer |
Model loading timestamp, that is, service startup timestamp, in seconds. |
|
owned_by |
String |
Model owner. The default value is MindIE Server. |
|
Parent topic: APIs Compatible with OpenAI