> For the complete documentation index, see [llms.txt](https://luw-ai.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luw-ai.gitbook.io/api/luw.ai-api-documentation/ai-models/interior-ai.md).

# 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**](#fill-empty-room) and [**Style Transfer**](#style-transfer) parameters.

To change **`style`** and **`type`**, please use [Update Persona](/api/luw.ai-api-documentation/personas/persona-endpoints.md) endpoint before generation.

```
POST /v2/generate
```

**Parameters**

<table><thead><tr><th width="176">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>model</td><td>string</td><td><p><strong>Required</strong></p><p>Value must be <strong><code>interior</code></strong> for Interior AI. See other generators. Browse other <a href="/api/luw.ai-api-documentation/ai-models.md"><strong>Generators</strong></a>.</p></td></tr><tr><td>image</td><td>string</td><td><p><em>Optional</em></p><p>URL of the input image. Encode your image url if url have special characters.</p></td></tr><tr><td>prompt</td><td>string</td><td><p><em>Optional</em></p><p>Description of desired interior design</p></td></tr><tr><td>extra_image_1</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 1</p></td></tr><tr><td>extra_image_2</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 2</p></td></tr><tr><td>extra_image_3</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 3</p></td></tr><tr><td>extra_image_4</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 4</p></td></tr><tr><td>extra_image_5</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 5</p></td></tr><tr><td>extra_image_6</td><td>string</td><td><p><em>Optional</em></p><p>URL of the extra image input slot 6</p></td></tr><tr><td>styles</td><td>string</td><td><p><em>Optional</em></p><p>Comma separated names (case-sensitive) of <a href="/api/luw.ai-api-documentation/knowledge/design-styles.md">Design Styles</a></p></td></tr><tr><td>knows</td><td>string</td><td><em>Optional</em><br>New comma-separated style knowledge. List of types for <a href="/api/luw.ai-api-documentation/knowledge/interior-types.md"><strong>interior</strong></a></td></tr><tr><td>style_transfer</td><td>string</td><td><p><em>Optional</em></p><p>You can use style reference image for your generations to inspire from another designs. Use image url on this field, or use <strong><code>persona</code></strong> value to use <a href="/api/luw.ai-api-documentation/personas/persona-slots.md">Persona's Image Slots</a>.</p></td></tr><tr><td>fill_room</td><td>string</td><td><p><em>Optional</em></p><p>For converting a room to another type, or decorate from scratch, use <strong><code>true</code></strong> value.</p></td></tr><tr><td>pid</td><td>integer</td><td><p><em>Optional</em></p><p>Persona ID to use if you want to use <a href="/api/luw.ai-api-documentation/personas/persona-slots.md">Persona Slots</a> for images.</p></td></tr><tr><td>seed</td><td>integer</td><td><p><em>Optional</em></p><p>For reproducible results</p></td></tr><tr><td>precise</td><td>integer</td><td><p><em>Optional</em></p><p>Higher numbers results more realistic results, lower numbers generates more creative. <a href="/api/luw.ai-api-documentation/knowledge/precision-levels.md">Learn more</a></p></td></tr><tr><td>enhance_prompt</td><td>string</td><td><p><em>Optional</em></p><p>If you want to use <strong>Prompt Enhance</strong> model, use <strong><code>true</code></strong> value. If you want to continue without Prompt Enhancer don't add <strong><code>enhance_prompt</code></strong> parameter to your requests.</p></td></tr><tr><td>luwmodel</td><td>string</td><td><p><em>Optional</em></p><p>If you want to use <strong>Symphony</strong> model, use <strong><code>symphony-3</code></strong> value. If you want to continue using <strong>Aria</strong> model don't add <strong><code>luwmodel</code></strong> parameter to your requests.</p></td></tr><tr><td>format</td><td>string</td><td><p><em>Optional</em></p><p>Output format values: <code>jpg</code>, <code>png</code> or <code>webp</code></p></td></tr><tr><td>processing_url</td><td>string</td><td><p><em>Optional</em></p><p>Get process results with same endpoint, alternative to <a href="/api/luw.ai-api-documentation/introduction/get-process-results.md"><strong><code>/results</code></strong></a> endpoint usage.</p></td></tr><tr><td>webhook</td><td>string</td><td><p><em>Optional</em></p><p>Get process results with real-time <a href="/api/luw.ai-api-documentation/introduction/webhooks.md">webhooks</a>, alternative to <a href="/api/luw.ai-api-documentation/introduction/get-process-results.md"><strong><code>/results</code></strong></a> endpoint usage.</p></td></tr></tbody></table>

**Curl Example**

```bash
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**

```json
{
  "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`**](/api/luw.ai-api-documentation/introduction/get-process-results.md) 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**

```bash
curl -X POST https://api.luw.ai/v2/generate \
  -H "Authorization: Bearer LUW_API_TOKEN" \
  -d "model=interior" \
  -d "image=https://example.com/room.jpg" \
  -d "prompt=Modern minimalist living room" \
  -d "fill_room=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](/api/luw.ai-api-documentation/personas/persona-slots.md).

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`**\
\
\&#xNAN;*- or, if you want use use* [***Persona Slot: 1***](/api/luw.ai-api-documentation/personas/persona-slots.md)*, use "persona" value -*\
\
\&#xNAN;**`?style_transfer=persona`**
