# Exterior AI

**Note:** Also, please check out [**Style Transfer**](#style-transfer) parameter.

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

```
POST /v2/generate
```

**Parameters**

<table><thead><tr><th width="174">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>exterior</code></strong> for Exterior AI. Browse other <a href=""><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>styles</td><td>string</td><td><p><em>Optional</em></p><p>Comma separated names (case-sensitive) of <a href="../knowledge/design-styles">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="../knowledge/exterior-types"><strong>exterior</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="../personas/persona-slots">Persona's Image Slots</a>.</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="../personas/persona-slots">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="../knowledge/precision-levels">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>Luw 3 Symphony</strong> model, use <strong><code>symphony-3</code></strong> value. If you want to continue using <strong>Luw 2.5 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>O<em>ptional</em></p><p>Get process results with same endpoint, alternative to <a href="../introduction/get-process-results"><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="../introduction/webhooks">webhooks</a>, alternative to <a href="../introduction/get-process-results"><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=exterior" \
  -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": "abc_123..."
}
```

## ✨ Get results using the [**`/results`**](https://luw-ai.gitbook.io/api/luw.ai-api-documentation/introduction/get-process-results) endpoint.

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

## Special Parameters

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