Membuat aturan biaya.
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-xxxxxxx |
| ModelName |
string |
Yes |
Nama model, seperti |
gpt-4 |
| ModelServiceId |
string |
Yes |
ID layanan model. |
ms-xxxxxx |
| InputCostPointsPerMillion |
string |
No |
Jumlah poin biaya per juta token input. Nilai default adalah 0. |
0 |
| OutputCostPointsPerMillion |
string |
No |
Jumlah poin biaya per juta token output. Nilai default adalah 0. |
0 |
| CacheCostPointsPerMillion |
string |
No |
Jumlah poin biaya per juta token cache. Nilai default adalah 0. |
0 |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned by the request. |
||
| RequestId |
string |
The request ID. |
580EF224-9647-59E7-9950-D9EBFD6A2921 |
| CostRuleId |
string |
The cost rule ID. |
924d450014e64e88ac6e8486f8e990** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "580EF224-9647-59E7-9950-D9EBFD6A2921",
"CostRuleId": "924d450014e64e88ac6e8486f8e990**"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.