Skip to content

Edit with words

mode: "edit" makes the change you describe in prompt and keeps the rest of the photo.

const edited = await client.designs.createAndWait({
mode: 'edit',
inputAssetId: photo.id,
prompt: 'Replace the floor with wide-plank light oak',
});
edited = client.designs.create_and_wait(
mode="edit",
input_asset_id=photo["id"],
prompt="Replace the floor with wide-plank light oak",
)
Field What it does
prompt The change, as one clear instruction. Required (or preset).
scope focused (default) changes one thing; redesign lets the edit restyle the whole room around it.
target Change only one part: walls, floor, cabinets, countertops, backsplash, ceiling, sofa, curtains, rug, bed, table, fireplace or lights. We find that part in the photo and keep every other pixel exactly as it was, so you can chain edits without the room drifting. If the part isn’t in the photo, the design fails and is refunded.
preset "remove": remove what the prompt names (“the coffee table”).
itemAssetIds Up to 4 uploaded photos of items to put in, such as a product you sell: “Put this sofa against the back wall”.
model Edit models from the catalog (modes includes edit).

Good prompts name one change and where it goes: “Paint the walls warm white”, “Swap the sofa for a green velvet one”, “Add a large abstract painting above the sofa”.