generate_image
Transform text prompts into custom images using the Flux model. Specify dimensions, aspect ratio, and save location for high-quality outputs with controlled denoising steps.
Instructions
Generate an image from a text prompt using Flux model
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 |
|---|---|---|---|
| aspect_ratio | No | Aspect ratio for the generated image | 1:1 |
| file_name | No | Name of the file to save the image | |
| height | No | Height of the generated image | |
| num_inference_steps | No | Number of denoising steps. 4 is recommended, and lower number of steps produce lower quality outputs, faster. | |
| prompt | Yes | Prompt for generated image | |
| save_folder | No | Folder path to save the image | ./output |
| width | No | Width of the generated image |