Build a local product-scene composer: arrange elements on a canvas, then generate the scene around them with inpainting. Canvas: a fixed-aspect working area. The user places a product cutout (PNG with alpha, or an image put through a local segmentation model), plus simple prop placeholders — rectangles and ellipses they position and label with a word like "stone plinth", "linen cloth", "leaves". Objects can be moved, scaled and rotated; the arrangement is the input, not decoration. Mask construction, which is the technical core. From the arrangement, build: - A keep mask covering the product cutout's alpha, dilated by a couple of pixels. Nothing inside it may be regenerated. - A guide image where each labelled placeholder is filled with a flat colour, so the diffusion pass has structure to follow. - A generate mask covering everything else. Generation: submit to a local ComfyUI instance configured in the environment. Run an inpainting workflow that takes the composed canvas, the generate mask, and a prompt assembled from the scene description plus each placeholder's label positioned by its location in the frame ("stone plinth in the lower left"). Use a depth or edge control input derived from the guide image so the placeholders influence composition rather than being ignored. Be honest about adherence: after each generation, show the result with the original arrangement overlaid as an outline so the user can see how far the model drifted from their layout. Do not hide the drift behind a nice crop. Iteration: seed control, a variant grid of four at once, and a rerun-with-adjustment action that keeps the arrangement and changes only the prompt or seed. Store the full workflow JSON and every parameter beside each output, so a good result can be reproduced exactly. Lighting: a simple relight pass — the user picks a light direction and strength, and the pipeline applies a gradient to the composited product so it matches the generated scene. Without this the product reads as pasted on, which is the giveaway that separates a usable product shot from an obvious composite. Export: full resolution PNG and JPEG, plus a marketplace-square crop. Out of scope: any hosted API, model training or fine-tuning, an account system, and a template marketplace.