Edit image with a prompt (Magic Prompt AI)
luw_edit_imageEdit any image with a plain-language instruction, such as changing colors or adding objects, and apply reference images for products, materials, or mood boards.
Instructions
Luw.ai Magic Prompt AI: edit any image with a plain-language instruction: "make the sofa green velvet", "add a pendant lamp over the table", "turn it into a night scene". Pass products, materials or a mood board as reference_images to place or apply them. For edits restricted to an exact area, use luw_magic_wand. Costs 1 credit per variation (2 at 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": {
"image": "<image>",
"prompt": "<prompt>"
},
"name": "luw_edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image to edit (public https:// link or data: URI; the local npx server also accepts a file path). | |
| engine | No | Luw.ai model: symphony (Symphony-3, the default: the higher quality) or aria (quicker, for everyday work). If the user picked a model earlier in this conversation, use that one. | symphony |
| format | No | Output image format. | |
| prompt | Yes | The edit to make. | |
| resolution | No | Output resolution: 2k (default; free accounts get about 1k) or 4k (2 credits). | |
| variations | No | Number of alternative designs (1-4, default 1); each is billed as a generation. | |
| enhance_prompt | No | Let Luw.ai's prompt enhancer expand a short prompt. | |
| reference_images | No | Up to 6 reference images (furniture, materials, products, mood boards) to draw from. |