ModifyModelApi
Modifies a model API.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The gateway instance ID. |
pg-xxxxxxxxxx |
| ModelApiId |
string |
Yes |
The model API ID. |
mi-xxxxx |
| ModelCategory |
string |
Yes |
The model category. Valid values:
|
text |
| PathPrefix |
string |
Yes |
The API path prefix. |
/test |
| Protocol |
string |
Yes |
The protocol. Valid values:
|
openai |
| RecordInput |
string |
No |
The number of input units. |
10 |
| RecordOutput |
string |
No |
The number of output units. |
10 |
| RouteRules |
string |
Yes |
A JSON array of routing rules, provided as a string. |
[ { "RuleName": "string", "FallbackMode": "failover", "MatchModelListJson": "[]", "providerBalancerAlgorithm": "round-robin", "Providers": [ { "ModelServiceName": "string", "Weight": "0", "model_protocol": "vllm" "ModelList": "[]" } ], "FallbackProviders": [ { "ModelServiceName": "string", "model_protocol": "anthropic", "Weight": "10", "ModelList": "[]" } ] } ] |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
925B84D9-CA72-432C-95CF-738C22****** |
| ModelApiId |
string |
The model API ID. |
mi-xxxxx |
Examples
Success response
JSON format
{
"RequestId": "925B84D9-CA72-432C-95CF-738C22******",
"ModelApiId": "mi-xxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.