POST
/
interior
/
room_decorator
Room decorator
curl --request POST \
  --url https://modelslab.com/api/v6/interior/room_decorator \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "prompt": "<string>",
  "init_image": "<string>",
  "negative_prompt": "<string>",
  "strength": 123,
  "base64": false,
  "num_inference_steps": 123,
  "guidance_scale": 123,
  "temp": false,
  "seed": 123,
  "webhook": "<string>",
  "track_id": 123
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "meta": {}
}

Request

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

Body

json
{  
    "key":"",  
    "init_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/EWERWHABWAfXlxcGPkws35v5LJGP1g-metaOTI4YWZjODg5YzZjMWZlY2NkMGJhZDI2ZmY4NWE0YjNbMV0uanBn-.jpg",  
    "prompt": "A luxurious bedroom featuring an elegant table, rich red carpet, and polished wooden flooring",  
    "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

application/json
key
string
required

Your API Key used for authenticating your request

prompt
string
required

A text prompt describing the content you want in the generated room decor image

init_image
string<uri>
required

A URL to the initial image of the room to base the design on

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 we want to avoid

strength
number

The degree to which the prompt influences the initial image. 1.0 corresponds to full destruction of the initial image details

base64
boolean
default:false

Specifies whether the response should be returned as a base64 string. Defaults to 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

Indicates if temporary links should be used, valid for 24 hours. Defaults to false

seed
integer | null

Seed for reproducibility. The same seed generates the same image. Use null for a random seed

webhook
string<uri> | null

A URL to receive a POST API call once the image generation is complete

track_id
integer | null

An ID returned in the API response, used to identify the webhook request

Response

Room decoration response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the result in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of URLs to the generated images

Array of proxy URLs for the generated images

meta
object

Metadata about the generation process and parameters used