Skip to main content
POST
/
interior
/
scenario_changer
Scenario changer
curl --request POST \
  --url https://modelslab.com/api/v6/interior/scenario_changer \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_image": "<string>",
  "scenario": "beach",
  "prompt": "<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/scenario_changer' \

Body

json
{  
    "key":"",  
    "init_image": "https://imagedelivery.net/pp4qzjxmlvglhjqbm3erng/50bc1662-8d41-468e-55d0-9575ad096000/768",
    "prompt": "A beautiful house in the snow",
    "scenario": "snow",  
    "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

application/json
key
string
required

Your API Key used for authenticating your request

init_image
string<uri>
required

A URL to the photo whose surroundings you want to transform

scenario
enum<string>
required

The target environment you want to apply

Available options:
beach,
desert,
plain,
taiga,
mountain,
snow,
jungle,
city,
underwater,
urban,
forest
prompt
string
required

Describe the new environment, colors, and mood you want applied to the surroundings

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 is used to reproduce results, same seed will give you same image in return again. Pass null for a random number

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

Scenario change response

  • Option 1
  • Option 2
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

I