doubao_generate_image
Generates an image from a text prompt through Doubao’s web interface, supporting reference images, Seedream model choice, custom aspect ratios, local saving, and diagnostics.
Instructions
通过豆包网页生成一张图片,支持参考图、Seedream模型和自动/任意文本比例。一次提交,不自动重发;返回本地图片、实际宽高、网页模型证据、对话链接和诊断。
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": "doubao_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | seedream5.5 | |
| prompt | Yes | 图片提示词 | |
| allow_pro | No | 明确选用会员模型时设为true | |
| output_dir | No | 可选本机绝对输出目录 | |
| aspect_ratio | No | auto 或任意正数比例,例如9:16、21:9、2.35:1。实际支持程度由豆包决定。 | auto |
| timeout_seconds | No | ||
| reference_images | No | 本机参考图绝对路径,支持PNG/JPEG/WebP/APNG |