Skip to main content

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": "make beautiful pink and golden color exterior",  
    "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 exterior style, colors, and mood you want applied to the restored facade.
init_image
string
A URL to the exterior photo you want to enhance.
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.
I