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

Body

json
{  
    "key":"enterprise_api_key",  
    "init_image": "https://i.pinimg.com/564x/f6/73/9d/f6739dc3fec02fa4019d1045fdad4d47.jpg",  
    "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,  
    "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 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
Descriptions of elements to avoid in the image (e.g., NSFW content, extra limbs, poor quality).
strength
number
Prompt strength when using init_image. 1.0 corresponds to full destruction of information in the init image.
base64
boolean
default:"false"
Return the image as a base64 string. Default is false.
num_inference_steps
integer
The number of denoising steps. Acceptable values are 21, 31, or 41.
guidance_scale
integer
Scale for classifier-free guidance. The minimum is 1 and the maximum is 20.
temp
boolean
default:"false"
Create a temporary image link valid for 24 hours.
seed
integer
Seed for reproducibility. Same seed returns the same image. 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
ID returned in the webhook callback to identify the request.