Skip to main content
POST
/
interior
/
interior_mixer
Interior mixer
curl --request POST \
  --url https://modelslab.com/api/v6/interior/interior_mixer \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_image": "<string>",
  "object_image": "<string>",
  "prompt": "<string>",
  "width": 1280,
  "height": 1280,
  "guidance_scale": 123,
  "num_inference_steps": 8,
  "base64": false,
  "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/interior_mixer' \

Body

json
{
    "key":"",
    "init_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/d3eb50fd-0232-416a-8c89-184457098ed2-0.jpg",
    "object_image":"https://i.pinimg.com/736x/ba/c8/0a/bac80ac4b8b718836a0b3c2818de509f.jpg",
    "prompt": "add sofa from image 1 to the good position room in image 2",
    "width": 1024,
    "height": 1024,
    "guidance_scale": 8,
    "num_inference_steps": 51,
    "base64": false,
    "webhook": null,
    "track_id": null
}

Body

application/json
key
string
required

Your API Key used for authenticating your request

init_image
string<uri>
required

Room image in which object wants to be added

object_image
string<uri>
required

Object which we want to add

prompt
string
required

Prompt required for generation

width
integer

Width of output image. Min: 512, Max: 2048. If not provided, uses original image resolution

Required range: 512 <= x <= 2048
height
integer

Height of the output image. Min: 512, Max: 2048. If not provided, uses original image resolution

Required range: 512 <= x <= 2048
guidance_scale
integer

The scale for classifier-free guidance

num_inference_steps
integer
default:8

Number of inference steps required for generation

base64
boolean
default:false

Specifies whether the response should be returned as a base64 string. Defaults to false

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

Interior mixer 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