Queries the model service list.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeModelServices |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The gateway instance ID. |
pg-xxxxxxxxxx |
| Name |
string |
No |
The model service name. |
testName |
| ModelServiceIds |
string |
No |
The model service IDs. |
ms-xxx,ms-xxxx |
| ModelCategory |
string |
No |
The model category. |
text |
| Protocol |
string |
No |
The protocol type. Valid values:
|
openai |
| Status |
string |
No |
The status. |
Enable |
| PageSize |
integer |
No |
The number of entries per page. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Items |
array<object> |
The list of model services. |
|
|
object |
The model service object. |
||
| ApiKey |
string |
The API key of the model service. |
xxxx |
| BaseUrl |
string |
The upstream service endpoint. |
https://xxxxxx |
| GmtCreated |
string |
The creation date of the model. |
2026-03-31T14:40:48Z |
| InputCostPointsPerMillion |
string |
The input points. |
10 |
| ModelCategory |
string |
The category. |
text |
| ModelServiceId |
string |
The model service IDs. |
ms-xxxxxx |
| Name |
string |
The model service name. |
test |
| OutputCostPointsPerMillion |
string |
The output points. |
10 |
| Protocol |
string |
The protocol type. Valid values:
|
openai |
| RequestCostPoints |
string |
The number of requests. |
10 |
| Status |
string |
The status. |
Enable |
| Vendor |
string |
The model service provider. |
bailian |
| PageNumber |
integer |
The current page number. |
1 |
| PageRecordCount |
integer |
The number of entries on the current page. |
30 |
| PageSize |
integer |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| RequestId |
string |
Id of the request |
24A1990B-4F6E-482B-B8CB-75C612****** |
| TotalRecordCount |
integer |
The total number of entries. |
2 |
Examples
Success response
JSON format
{
"Items": [
{
"ApiKey": "xxxx",
"BaseUrl": "https://xxxxxx",
"GmtCreated": "2026-03-31T14:40:48Z",
"InputCostPointsPerMillion": "10",
"ModelCategory": "text",
"ModelServiceId": "ms-xxxxxx",
"Name": "test",
"OutputCostPointsPerMillion": "10",
"Protocol": "openai",
"RequestCostPoints": "10",
"Status": "Enable",
"Vendor": "bailian"
}
],
"PageNumber": 1,
"PageRecordCount": 30,
"PageSize": 30,
"RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
"TotalRecordCount": 2
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidPolarGatewayInstanceId.NotFound | The gateway instance id provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.