Edit image with a prompt (Magic Prompt AI)
luw_edit_imageEdit any image with plain-language instructions, applying products, materials, or mood-board references to change scenes, objects, or styles.
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 | Model: aria (default) or symphony (Symphony-3). | |
| 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. |