All Products
Search
Document Center

PolarDB:DescribeModelServices

Last Updated:Jun 10, 2026

Mencantumkan layanan model.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST  HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

GwClusterId

string

Yes

ID instans gerbang.

pg-xxxxxxxxxx

Name

string

No

Nama layanan model.

testName

ModelServiceIds

string

No

ID layanan model. Pisahkan beberapa ID dengan koma (,).

ms-xxx,ms-xxxx

ModelCategory

string

No

Kategori model.

text

Protocol

string

No

Jenis Protokol. Nilai valid:

  • openai

  • anthropic

  • bailian: Model dari Studio Model.

  • vllm.

openai

Status

string

No

Status layanan model.

Enable

PageSize

integer

No

Jumlah entri per halaman.

30

PageNumber

integer

No

Nomor halaman.

1

RegionId

string

No

ID Wilayah.

cn-beijing

Elemen respons

Element

Type

Description

Example

object

The response data.

RequestId

string

The request ID.

24A1990B-4F6E-482B-B8CB-75C612******

TotalRecordCount

integer

The total number of records.

2

PageNumber

integer

The page number.

1

PageRecordCount

integer

The number of records on the current page.

30

Items

array<object>

The details of the model services.

object

A model service object.

ModelServiceId

string

The model service ID.

ms-xxxxxx

Name

string

The model service name.

test

ModelCategory

string

The model category.

text

Protocol

string

The protocol. Valid values:

  • OpenAI

  • Anthropic

  • bailian: Alibaba Cloud Model Studio.

  • vLLM

openai

Status

string

The status of the model service.

Enable

BaseUrl

string

The base URL of the upstream service.

https://xxxxxx

GmtCreated

string

The time when the model service was created.

2026-03-31T14:40:48Z

InputCostPointsPerMillion

string

The cost in points per million input tokens.

10

OutputCostPointsPerMillion

string

The cost in points per million output tokens.

10

RequestCostPoints

string

The cost in points per request.

10

ApiKey

string

The API key for the model service.

xxxx

Vendor

string

The vendor of the model service.

bailian

PageSize

integer

The number of records to return on each page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

30

Contoh

Respons sukses

JSONformat

{
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "TotalRecordCount": 2,
  "PageNumber": 1,
  "PageRecordCount": 30,
  "Items": [
    {
      "ModelServiceId": "ms-xxxxxx",
      "Name": "test",
      "ModelCategory": "text",
      "Protocol": "openai",
      "Status": "Enable",
      "BaseUrl": "https://xxxxxx",
      "GmtCreated": "2026-03-31T14:40:48Z",
      "InputCostPointsPerMillion": "10",
      "OutputCostPointsPerMillion": "10",
      "RequestCostPoints": "10",
      "ApiKey": "xxxx",
      "Vendor": "bailian"
    }
  ],
  "PageSize": 30
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.