generate_image
Generate an image from a text prompt or edit an existing image by providing its URL or local path and describing the change.
Instructions
Generate or edit one image with ImgLume. For edits, pass the source image URL or local file path in referenceImages and keep the prompt focused on the requested change. Omit model, quality, or aspectRatio to use live ImgLume defaults.
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 |
|---|---|---|---|
| model | No | Optional model ID | |
| prompt | Yes | Image generation prompt | |
| quality | No | Optional quality value | |
| promptId | No | Optional ID returned by get_inspiration | |
| aspectRatio | No | Optional ratio such as 1:1, 16:9, or 9:16 | |
| referenceImages | No | Public image URLs or absolute/local image file paths |