All Products
Search
Document Center

API Gateway:AiServiceConfig

Last Updated:Feb 11, 2026
ParameterTypeDescriptionExample
object

The struct description.

providerstring

The Large Language Model (LLM) provider.

qwen
addressstring

The service endpoint.

https://dashscope.aliyun.com
enableHealthCheckboolean

Specifies whether to enable health check.

true
paiEASServiceConfigobject

PAI-EAS service configuration settings.

workspaceIdstring

Workspace identifier.

plw-d5g7qsem1hkmih54g210
serviceIdstring

Service identifier.

svc-d33onfmm1hkn5duhuqjg
serviceNamestring

Name of the service.

service-hello
endpointTypestring

Type of endpoint.

"public","private"
bedrockServiceConfigobject

Bedrock service configuration.

awsRegionstring

AWS-Region

us-west-2
awsAccessKeystring

AWS-AccessKey

AKIAIOSFODNN7EXAMPLE
awsSecretKeystring

AWS-SecretKey

wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
ApiKeyGenerateModestring

API key generation mode.

-
defaultModelNamestring

Default model name.

qwen-turbo
enableOutlierDetectionboolean

Enable outlier detection.

false
vertexServiceConfigobject

Vertex AI service configuration.

vertexAuthKeystring

Vertex AI authentication key.

{\"type\":\"service_account\",\"project_id\":\"xxx\",\"private_key\":\"-----BEGIN PRIVATE KEY-----\",\"client_email\":\"xxx@xxx.iam.gserviceaccount.com\",\"token_uri\":\"https://oauth2.googleapis.com/token\"}
vertexRegionstring

Vertex AI region.

us-central1
vertexProjectIdstring

Vertex AI project ID.

my-gcp-project-123
vertexAuthServiceNamestring

Vertex AI auth service name.

custom-vertex-auth
geminiSafetySettingobject

Gemini safety settings.

string

string

category":"HARM_CATEGORY_SEXUALLY_EXPLICIT
vertexTokenRefreshAheadinteger

Vertex token refresh lead time.

300
protocolsarray

The LLM protocols.

string

The protocol.

OpenAI/v1
apiKeysarray

The API keys.

string

apiKey

sk-xxx
compatibleProtocolsarray

Supported compatible protocols.

string

string

"openai", "anthropic"