# Face swap

Face swapping API can be used for replacing face on original image with another one. There is also possibility to reimagine the result with strength parameter.

```json
{
    "url": "original_image",
    "background": {
        "generate": {
            "strength": 0.1,
            "adapter_type": "face",
            "avatar_generation_type": "creative_img2img",
            "ip_image2": "replacement_face_url"
        }
    }
}
```

Face swapped image can be reimagined with additional prompt description:

```json
{
    "url": "original_image",
    "background": {
        "generate": {
            "description": "A cinematic scene with dramatic lighting, rich atmosphere, and dynamic composition.",
            "strength": 0.1,
            "adapter_type": "face",
            "avatar_generation_type": "creative_img2img",
            "ip_image2": "replacement_face_url"
        }
    }
}
```


---

# 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://documentation.deep-image.ai/common-usecases/face-swap.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.
