Targeted Element API
The Targeted Element service allows you to transform a specific element in an image while preserving the rest of the composition.Modify an element
POST /api/one_element/generate
Request Parameters
The unique user identifier (UUID) that you can retrieve from your Developer Space
URL of the image containing the element to modify (format: jpg, png)
Type of element to modify. Possible values: “WALL”, “FLOOR”, “CEILING”, “FURNITURE”, etc.
The URL we call once the generation is complete
Response
The unique generation identifier (UUID) to use with the retrieval API
The number of photos remaining after this generation
The unique project identifier (UUID)
Request Example
Response Example
Generate a variation of a modification
POST /api/one_element/generate-variation
Request Parameters
The unique user identifier (UUID)
The unique identifier of the previous generation
Type of element to modify for this variation. Possible values: “WALL”, “FLOOR”, “CEILING”, “FURNITURE”, etc.
Response
The unique identifier of the new generation
Request Example
Response Example
Retrieve a generated modification
POST /api/one_element/get
Request Parameters
The unique user identifier (UUID)
The unique identifier of the generation to retrieve
Response
The generation status: “STARTING”, “PROCESSING”, “SUCCEEDED”, “FAILED”
An array containing the URLs of generated images (present only if status=“SUCCEEDED”)
The number of variations already performed on this project