Remove or replace background
luw_backgroundRemoves a product or object from its background to create a transparent PNG, or places it in a new AI-generated scene when a prompt is provided for marketing shots.
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: 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 |
| 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. |