Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/interior/room_decorator' \

Body

json
{  
    "key":"enterprise_api_key",  
    "init_image": "https://upcdn.io/12a1yeE/raw/WhatsApp%20Image%202024-04-04%20at%208.06.42%20AM.jpeg", 
    "prompt": "luxury badroom, table, red carpet, wodden floor",  
    "negative_prompt": "bad quality",  
    "seed": 0,  
    "guidance_scale": 8,  
    "strength": 0.99,  
    "num_inference_steps": 51,  
    "base64": false,  
    "temp": false,  
    "webhook":null,  
    "track_id": null
}

Body Attributes

key
string
required
Your API Key used for request authorization.
prompt
string
required
The text prompt describing the content you want in the generated image.
init_image
string
Link to the Initial Image of the room.
negative_prompt
string
Negative prompts are descriptions of things we don’t want in our image. Examples include NSFW content, extra limbs, distorted faces, poor quality, or anything else to avoid.
strength
number
Prompt strength when using init_image. 1.0 corresponds to full destruction of information in the init image.
base64
boolean
default:"false"
Get response as a base64 string. Options: true or false.
num_inference_steps
integer
The number of denoising steps. Acceptable values are 21, 31, or 41.
guidance_scale
integer
The scale for classifier-free guidance. Minimum is 1 and maximum is 20.
temp
boolean
default:"false"
Create temp image link. This link is valid for 24 hours.
seed
integer
Seed is used to reproduce results. Same seed will give you same image in return again. Pass null for a random number.
webhook
string
Provide a URL to receive a POST API call once the image generation is complete.
track_id
integer
This ID is returned in the response to the webhook API call and will be used to identify the webhook request.