即梦图像生成
generate_imageGenerates images from text prompts, reference images, or multiple references with configurable dimensions, aspect ratios, and edit strength for AI image creation.
Instructions
使用即梦AI 4.0生成图像。支持文生图、图生图、多图参考生成。支持设置尺寸、比例、编辑强度等。
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": {
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | 随机种子(默认-1) | |
| size | No | 生成图片的面积(默认2048*2048),面积和宽高需要2选1传入 | |
| scale | No | 文本描述影响的程度(0-1之间),默认0.5 | |
| width | No | 图像宽度(默认自动),需同时传width和height | |
| height | No | 图像高度(默认自动),需同时传width和height | |
| prompt | Yes | 图像描述提示词 | |
| max_ratio | No | 生图结果的宽/高 ≤ max_ratio(默认3) | |
| min_ratio | No | 生图结果的宽/高 ≥ min_ratio(默认1/3) | |
| image_urls | No | 参考图片输入数组(最多10张)。支持: • 绝对路径(如 /path/to/image.jpg) • 文件协议(如 file:///path/to/image.jpg) • 远程URL(如 https://example.com/image.jpg) ⚠️ 不支持相对路径 | |
| force_single | No | 是否强制生成单图(默认false) |