generate_image
Generate web-dev images from text prompts with customizable size, multiple variants, and seed control. Saves to output path.
Instructions
Generate web-dev image(s) with Z-Image Turbo and save to output_path.
size: one of square|landscape|portrait|hero|wide|og|mobile, or pass width+height for exact pixels (image is generated at the nearest valid size then resized/cropped). n: 1-4 variants (paths get _1,_2,... ); seeds are base_seed, base_seed+1, ... Returns {images, seed, gen_size, output_size, seconds}.
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| seed | No | ||
| size | No | square | |
| steps | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| negative | No | ||
| output_path | Yes |