Remove or replace background
luw_backgroundRemove backgrounds from product or object photos to create transparent PNGs, or use a prompt to place the cutout in a generated marketing scene.
Instructions
Luw.ai Change Background: cut out a product/object from its background (transparent PNG) — or, with a prompt, place it in a new generated scene for marketing shots ("on a marble kitchen counter, morning light"). Omit prompt to just remove the background. Costs 1 credit.
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>"
},
"name": "luw_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Product or object photo (public https:// link or data: URI; the local npx server also accepts a file path). | |
| engine | No | Luw.ai model: aria (default) or symphony (Symphony-3). | |
| prompt | No | New background to generate. Leave empty to remove the background. | |
| enhance_prompt | No | Let Luw.ai's prompt enhancer expand a short prompt. |