set-config
Configure the image generator by setting your DashScope API key, region, default image size, and style.
Instructions
设置API配置
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>"
},
"name": "set-config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | 服务区域 | cn-beijing |
| api_key | Yes | 阿里云DashScope API密钥 | |
| default_size | No | 默认图像尺寸 | |
| default_style | No | 默认图像风格 |