# Ghost Mannequin

## Overview

Ghost Mannequin lets you show your clothing at its best with clean, mannequin-free visuals that clearly capture fit and drape.

To use Ghost Mannequin, set the parameter `ghostMannequin.mode` to `ai.auto`:

<table data-header-hidden><thead><tr><th align="center" valign="top"></th><th align="center" valign="middle"></th></tr></thead><tbody><tr><td align="center" valign="top"><em>(original image)</em></td><td align="center" valign="middle"><em>(edited image)</em></td></tr><tr><td align="center" valign="top"><img src="/files/okwWPZDA7Rv0unIYXtWr" alt=""></td><td align="center" valign="middle"><img src="/files/1HJLsQd3WVYDV1LbnTah" alt=""></td></tr><tr><td align="center" valign="top"><img src="/files/Rr79Xb4NK4FOPGpAwtw1" alt=""></td><td align="center" valign="middle"><img src="/files/DpMHlHUVi08PTukG92nY" alt=""></td></tr><tr><td align="center" valign="top"><img src="/files/7j4xW7UhGfnHD4tYMtne" alt=""></td><td align="center" valign="middle"><img src="/files/JqurYidq09KX40tofk9Z" alt=""></td></tr><tr><td align="center" valign="top"><img src="/files/iapXFBYxRCLOKim8oo7Y" alt=""></td><td align="center" valign="middle"><img src="/files/40WFBQAJBUPseNHYwbFX" alt=""></td></tr><tr><td align="center" valign="top"><img src="/files/OxTCCN2br08mB3x4lXYa" alt=""></td><td align="center" valign="middle"><img src="/files/nQVkarIfTM2EjYoDZEis" alt=""></td></tr><tr><td align="center" valign="top"><p></p><p><img src="/files/2N1oTP55zSHSJRuzdZTR" alt="" data-size="original"></p></td><td align="center" valign="middle"><p></p><p><img src="/files/CP88Rwev5NrkSXvpMeO4" alt="" data-size="original"></p></td></tr></tbody></table>

If you want to give it a try, here's the code to reproduce the first example above:

```bash
curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'x-api-key: YOUR_API_KEY_HERE' \
  --form imageFile=@/path/to/image.png \
  --form ghostMannequin.mode=ai.auto \
  --output result.png
```

<a href="https://try-api.photoroom.com/?ghostMannequin.mode=ai.auto" class="button primary">Try it now!</a>

{% hint style="info" %}
Ghost Mannequin is meant to be used with images that feature clothing items.
{% endhint %}

## Which resolutions are supported?

By default, Ghost Mannequin will produce outputs at a resolution of 1K (`1024x1024`).

Output resolutions of 2K and 4K are available for Enterprise plans:

<div><figure><img src="/files/BWuJbb3ucxtMPrJDJx7t" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/BXA6fSGYvF2gq82nuZmh" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/o1yFPP5cbN682VnLbP4R" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

<div><figure><img src="/files/foEr1NhH0wzmVFE8zDhJ" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/CcGNzxGTZdGwufn3rwpu" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/NDWLASLZWKVCOcX7KVvd" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

<div><figure><img src="/files/spSOHV4GZj3f80LkIJjw" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/awIZQdkTH4Z5uewf2jbG" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/A3X1NJPyOtdBU5H61Cgi" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

{% hint style="info" %}
Make sure to click on the images to see them in full resolution.
{% endhint %}

If you're interested to use 2K or 4K resolution, please [contact our team to book a demo](https://www.photoroom.com/contact-sales?utm_source=apidocumentation\&utm_medium=enterprisegated).

<a href="https://www.photoroom.com/contact-sales?utm_source=apidocumentation&#x26;utm_medium=enterprisegated" class="button primary">Book a demo</a>

## Additional Parameters

### `ghostMannequin.prompt`

Optional text prompt to guide the generation style.

Example: `ghost mannequin`

### `ghostMannequin.size`

The output size and aspect ratio of the generated image.

Default: `SQUARE_HD`

Possible values: `PORTRAIT_HD_16_9`, `PORTRAIT_HD_4_3`, `PORTRAIT_HD_3_2`, `SQUARE_HD`, `LANDSCAPE_HD_3_2`, `LANDSCAPE_HD_4_3`, `LANDSCAPE_HD_16_9`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.photoroom.com/image-editing-api-plus-plan/ghost-mannequin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
