Request

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

Body

json
{  
    "key":"enterprise_api_key",  
    "init_image": "https://i.pinimg.com/736x/b2/94/76/b29476a69497bbc870d48a531e0008db.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 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.
negative_prompt
string
Descriptions of elements you don’t want in the image (e.g., poor quality, distortion, NSFW content).
strength
number
Degree to which the prompt influences the initial image. 1.0 corresponds to full destruction of original details.
base64
boolean
default:"false"
Return the image as a base64 string. Default is false.
num_inference_steps
integer
The number of denoising steps to perform. Accepted values: 21, 31, or 41.
guidance_scale
integer
Scale for classifier-free guidance. Minimum is 1, maximum is 20.
temp
boolean
default:"false"
If true, stores image in temporary storage valid for 24 hours.
seed
integer
Seed for reproducibility. Same seed yields same image. Use null for randomness.
webhook
string
URL to receive a POST request once the image generation completes.
track_id
integer
ID returned in API response to identify the webhook request.