Generate image
generate_imageGenerate a new image from a text prompt, or edit an input image with a prompt.
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 |
|---|---|---|---|
| image | No | Input image (a file the user uploaded). | |
| prompt | Yes | What to create, or how to edit the input image. | |
| aspect_ratio | No |