|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The AI API configuration. |
||
| autoDeploy |
boolean |
Specifies whether to automatically deploy the API. |
true |
| backendScene |
string |
The publishing scenario. |
SingleService |
| builtinRouteNames |
array |
The list of built-in route names. |
|
|
string |
The list. |
["chat","completions"] |
|
| customDomainIds |
array |
The list of custom domain name IDs. |
|
|
string |
The domain name ID. |
d-xxx |
|
| customDomainInfos |
array |
The list of custom domain name information. |
|
|
object |
The list of custom domain name information. |
||
| domainId |
string |
The domain name ID. |
d-cshee6dlhtgk****** |
| name |
string |
The domain name. |
hello-server.com |
| protocol |
string |
The protocol. |
HTTP |
| enableSystemModels |
boolean |
Specifies whether to enable gateway system models. This parameter takes effect only when the publishing scenario is AiAutoRouter. Default value: false. This field is used for backward compatibility with older clients. If systemModelTiers is not submitted, true indicates that all three tiers of system models are enabled, and false indicates that all are disabled. |
true |
| envDomainIds |
array |
The list of environment domain name IDs. If not specified, all environment domain names are bound. An empty array indicates that no environment domain names are bound. |
|
|
string |
The list of environment domain name IDs. |
d-xxx |
|
| envDomainInfos |
array |
The list of environment domain name information. |
|
|
object |
The list of environment domain name information. |
||
| domainId |
string |
The domain name ID. |
d-env-xxx |
| name |
string |
The domain name. |
api.example.com |
| protocol |
string |
The protocol. |
HTTPS |
| environmentId |
string |
The environment ID. |
env-xxx |
| gatewayId |
string |
The gateway instance ID. |
gw-xx |
| gatewayInfo | GatewayInfo |
The gateway information. |
|
| gatewayType |
string |
The gateway type. |
API |
| mock | HttpApiMockContract |
The mock configuration. |
|
| policyConfigs |
array |
The list of policy configurations. |
|
|
object |
The list of policy configurations. |
||
| restApiRouteMode |
string |
The current online routing mode of the REST API. ordinary indicates per-operation routing, and compressed indicates single-prefix routing for the API. This field is not returned for non-REST APIs. |
ordinary |
| routeBackend | Backend |
The backend service information. |
|
| serviceConfigs |
array |
The list of service configurations. |
|
|
object |
The existing service configuration. |
||
| capabilityTier |
string |
The capability tier for intelligent routing candidates. Specify this parameter only when the publishing scenario is AiAutoRouter. Valid values: economy, standard, and premium. |
standard |
| gatewayServiceId |
string |
The gateway service ID. |
gw-svc-abc123 |
| intentCode |
string |
The intent code. |
INQUIRY |
| match | HttpApiBackendMatchConditions |
The matching condition. |
|
| modelName |
string |
The model name. |
qwen-max |
| modelNamePattern |
string |
The model name matching rule. |
qwen-* |
| multiServiceRouteStrategy |
string |
The multi-service routing strategy type. |
ByWeight |
| name |
string |
The display name of the service. |
Qwen-Max-Service |
| observabilityRouteConfig |
object |
The observability metric-based routing configuration. |
|
| mode |
string |
The routing mode. |
LeastBusy |
| queueSize |
integer |
The queue size. |
100 |
| rateLimit |
number |
The maximum traffic ratio for a single service. |
0.8 |
| port |
integer |
The service port number. |
80 |
| protocol |
string |
The service protocol (HTTP/HTTPS). |
HTTP |
| serviceId |
string |
The service ID. |
svc-xxx |
| version |
string |
The service version label. |
V2 |
| weight |
integer |
The service weight. |
100 |
| subDomains |
array |
The list of second-level domain name content. |
|
|
object |
The network type. |
||
| domainId |
string |
The domain name ID. |
d-csmn42um****** |
| name |
string |
The domain name. |
test |
| networkType |
string |
The network type. |
Intranet |
| protocol |
string |
The protocol. |
HTTP |
| systemModelTiers |
array |
The set of explicitly enabled gateway system model capability tiers. Takes effect only when the publishing scenario is AiAutoRouter. Valid values: economy, standard, and premium. An explicitly empty array indicates that no system models are enabled. |
["economy","standard","premium"] |
|
string |
The gateway system model capability tier. |
economy |