火山方舟图片生成 plan/images/generations
plan_images_generationsGenerates images from text prompts using the Volcano Ark Seedream model, saves them to a specified path, and returns them for agent review.
Instructions
火山方舟图片生成(端点 /api/plan/v3/images/generations,Seedream 文生图)。输入 prompt 与保存路径,生成图片并落盘,同时把图片直接返回给 Agent 查看。默认模型 doubao-seedream-5-0-flash,默认尺寸 1728x2304(宽x高,或 1K/2K/4K)。
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>",
"output_path": "<output_path>"
},
"name": "plan_images_generations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | 随机种子,固定 seed 可复现同一张图 | |
| size | No | 图片尺寸,宽x高如 2048x1152,或 1K/2K/4K,默认 1728x2304 | |
| model | No | 模型 ID,默认 doubao-seedream-5-0-flash | |
| format | No | 覆盖输出格式(默认跟随 output_path 扩展名) | |
| prompt | Yes | 生图提示词。图上要出现的文字用「」原样写进 prompt | |
| watermark | No | 是否加水印,默认 false | |
| output_path | Yes | 图片保存的绝对路径(.png 或 .jpg,格式跟随扩展名) |