spicyapi/head-swap-v1/editHead Swap is SpicyAPI's image head swap. It replaces the whole head in a target image with the head from a reference photo, hairstyle, hair colour and silhouette included, keeping the body, outfit, pose and background. Two URLs and an optional seed.
Workbench
These examples were written for this endpoint. Replace the prompt and sample media URLs with your own accessible inputs, then check the current quote and model availability before submitting.
Outputsilver-hair-onto-armor Use this exampleUnlike a face-only transfer, this one carries the hairstyle and the hair colour across with the head, which is why the target puts long pale hair over an open metal collar: the seam sits exactly where the borrowed hair meets the target's shoulder. Everything below that line - the mail, the pose, the cold light running down the links - comes from `image_url` and must not move. `reference_image_url` supplies the head, and there is no prompt to steer the blend.
Outputcostume-recast Use this exampleThe pattern behind the before-and-after on this page: a costumed body plate as the target plus one consented head reference. Both URLs are placeholders — you host the images and you need a release for the reference head.
Outputwindow-portrait-recast Use this exampleThe second before-and-after on this page, and a good case for this endpoint: an open neckline means the seam has nowhere to hide, so lighting direction has to match. Both URLs are placeholders, and the still shown was produced with a general prompt-driven image editor as a look reference.
Outputstage-relight-recast Use this exampleThis stage-lit head-transfer example uses a fixed seed for comparison, not to guarantee the same result. The input URLs are placeholders, and the illustrated still is a style reference made with a general image editor; obtain permission for the head reference.
- 20260907
Outputwaist-length-blonde-recast Use this exampleThe mirror image of a face swap. Here the hair is the loudest thing in the target — waist-length honey waves — and it does not survive: the whole head travels, so the reference's black hair arrives together with the features. The emerald gown, the hand on the banister and the stairwell light stay exactly where they were.
Outputshaved-head-recast Use this exampleA shaved head as the target, which is exactly where this endpoint parts company with a face swap: there is no hair to preserve, so the reference's curls have to be built onto the plate from nothing. The tattooed shoulder, the open shirt and the backlit rim are untouched.
This example starts at $0.013 per image. The Playground updates the estimate when you change the settings.
