Membuat layanan model.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
ID instans gerbang. |
pg-xxxxxxxxxx |
| Name |
string |
Yes |
Nama layanan model. |
test |
| ModelCategory |
string |
Yes |
Kategori model. |
text |
| Protocol |
string |
Yes |
Jenis Protokol. |
openai |
| BaseUrl |
string |
Yes |
URL layanan upstream. |
xxxx |
| ApiKey |
string |
Yes |
Kunci API untuk layanan model. |
xxxx |
| InputCostPointsPerMillion |
string |
No |
Biaya penagihan untuk input, diukur dalam poin per satu juta token. |
10 |
| OutputCostPointsPerMillion |
string |
No |
Biaya penagihan untuk output, diukur dalam poin per satu juta token. |
10 |
| RequestCostPoints |
string |
No |
Biaya penagihan per permintaan, diukur dalam poin. |
10 |
| Vendor |
string |
Yes |
Penyedia layanan model. Nilai contoh |
bailian |
| RegionId |
string |
No |
ID Wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| ModelServiceId |
string |
The model service ID. |
ms-xxxxxx |
| Status |
string |
The status of the model service. |
Enable |
Contoh
Respons sukses
JSONformat
{
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"ModelServiceId": "ms-xxxxxx",
"Status": "Enable"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.