Designs and their lifecycle
A design is one run of a tool on a photo: a redesign, a staging, an edit, an upscale. You start it with POST /public/v1/designs; it makes one to four images.
mode |
What it does | Needs |
|---|---|---|
remodel |
Restyle a room, keeping its walls, windows, doors and camera angle | inputAssetId; room, style |
staging |
Furnish an empty room | inputAssetId; room, style |
declutter |
Empty a furnished room | inputAssetId |
exterior |
Restyle the outside of a house | inputAssetId; style |
edit |
Make the change a sentence describes | inputAssetId, prompt |
brush |
Change only a marked area | inputAssetId, mask or maskAssetId, prompt |
enhance |
Upscale one image of a finished design | sourceImageId |
room and style are optional. Leave them out and the tool works from the photo and your prompt alone.
Statuses
Section titled “Statuses”queued ──▶ running ──▶ succeeded └──▶ failedqueued: accepted and charged, waiting for a worker. Usually a second or two.running: the image model is working.succeeded:imagesholds the results.failed:errorsays why (code,message). The credits were refunded, socreditsChargedis0.canceled: rare; the design was stopped before it ran. Treat it likefailed.
succeeded, failed and canceled are final; a design never changes after that.
Credits
Section titled “Credits”The price is taken when the design starts and refunded if it fails. creditsCharged on the design always says what it cost. See Credits and pricing.
Images and how long they are kept
Section titled “Images and how long they are kept”Each image has a full-size asset and a thumbnail, each with a url, width and height. Download what you keep: images stay available until keptUntil, which depends on the account’s plan, the same as in the app.
Who can see a design
Section titled “Who can see a design”Designs made with a key are visible to every key of the same account, and show in the account owner’s library in the app. Designs made in the app are never visible to keys. See Authentication.
Metadata
Section titled “Metadata”metadata holds up to 20 string pairs of your own (keys up to 40 characters, values up to 500), such as your listing or order id. It comes back on the design and in webhook events. It is not searchable.
Deleting
Section titled “Deleting”DELETE /public/v1/designs/{id} removes a design and its images, the same as deleting it in the app. It answers 204, and the design then answers 404. Deleting does not refund credits, and a design still rendering finishes anyway.