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.

{
    "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:

{
    "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"
        }
    }
}

Last updated