Interior AI

Redesign places by taking a picture or uploading a reference photo for redesigned AI generations.

Note: Also, please check out for Fill Empty Room and Style Transfer parameters.

POST /v2/generate

Parameters

Name
Type
Description

model

string

Required

image

string

Optional

URL of the input image

prompt

string

Optional

Description of desired interior design

styles

string

Optional

knows

string

style_transfer

string

Optional

fill_room

string

Optional

For converting a room to another type, or decorate from scratch, use true value.

pid

integer

Optional

seed

integer

Optional

For reproducible results

precise

integer

Optional

Higher numbers results more realistic results, lower numbers generates more creative

processing_url

string

Optional

Curl Example

curl -X POST https://api.luw.ai/v2/generate \
  -H "Authorization: Bearer LUW_API_TOKEN" \
  -d "model=interior" \
  -d "prompt=Modern minimalist living room" \
  -d "image=https://example.com/room.jpg"

Response Example

{
  "status": true,
  "progress": {
    "started_at": "2024-01-04T12:00:00Z",
    "state": "processing",
    "percent": 45
  },
  "processing": true,
  "processing_url": "pred_123..."
}

✨ Get results using the /results endpoint.

Alternative legacy method: Add &processing_url={url} to your request.

Special Parameters

Fill Empty Room

For converting a room to another type, or decorate from scratch you can use this special parameter to run different sub-model.

To switch Fill Empty Room mode, you can simply add fill_room parameter with true value like this example:

?fill_room=true

Curl Example

curl -X POST https://api.luw.ai/v2/generate \
  -H "Authorization: Bearer LUW_API_TOKEN" \
  -d "model=magicwand" \
  -d "image=https://example.com/room.jpg" \
  -d "mask_image=https://example.com/roommask.jpg" \
  -d "remove=true"

Style Transfer

You can use prompt area to do special actions like Style Transfer with style_transfer parameter, it will change image style at generations. Use image url on this field, or use persona value to use Persona's Image Slots.

To switch Style Transfer mode, you can simply add style_transfer parameter with the url of image like this example:

?style_transfer=https://example.com/style.jpg - or, if you want use use Persona Slot: 1, use "persona" value - ?style_transfer=persona

Last updated