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/scenario_changer' \

Body

json
{  
    "key":"enterprise_api_key",  
    "init_image": "https://imagedelivery.net/pp4qzjxmlvglhjqbm3erng/50bc1662-8d41-468e-55d0-9575ad096000/768", 
    "prompt": "rendering floor plan of the apartment layout,top view,white background,masterpiece, kitchen, living room, sofa, chair,bedroom,car best quality, extremely detailed,best illustration, best shadow",  
    "seed": 0,  
    "scenario": "beach",
    "guidance_scale": 8,  
    "strength": 0.99,  
    "num_inference_steps": 51,  
    "base64": false,  
    "temp": false,  
    "specific_object": null,  
    "webhook": null,  
    "track_id": null
}

Body Attributes

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 floor plan image.
init_image
string
A URL to the initial image of the room to base the floor plan on.
scenario
string
The scenario to be changed. Options: beach, deserat, plain, taiga, mountain, snow, jungle, city, underwater, urban, forest, desert.
negative_prompt
string
Negative prompts are descriptions of things we don’t want in our image (e.g., NSFW content, distorted faces, poor quality).
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. Options: true or false.
num_inference_steps
integer
The number of denoising steps. Acceptable values: 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.
seed
integer
Seed is used to reproduce results. Same seed will give you the same image in return again. Pass null for a random number.
webhook
string
A URL to receive a POST API call once the image generation is complete.
track_id
integer
An ID returned in the API response, used to identify the webhook request.