Half Moon Ai Image Face Swap
Playground
Try it on WavespeedAI!Half-Moon AI Image Face Swap takes one person’s face and realistically blends it onto another’s in a photo. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Image Face Swap
Image Face Swap is an AI-powered face-swapping model that seamlessly transfers a face from one image onto another. It produces natural, high-quality results with accurate facial alignment, skin-tone blending, and expression preservation — all in a single step.
Why Choose This?
-
One-click face swap Upload a source face and a target image — the model handles alignment, blending, and lighting automatically.
-
Natural blending Skin tone, lighting, and shadows are matched to the target image for realistic, artifact-free results.
-
Expression and pose preservation The swapped face adapts to the target’s pose and expression, maintaining a natural look.
-
Fast processing Results are generated in seconds with no local setup required.
Parameters
| Parameter | Required | Description |
|---|---|---|
| source_face | Yes | The face image to transfer (upload or public URL). |
| target_image | Yes | The image that will receive the swapped face (upload or public URL). |
How to Use
- Upload the source face — a clear, front-facing photo works best.
- Upload the target image — the image where the face will be swapped in.
- Run — the model processes and returns the result in seconds.
- Download the output image.
Pricing
Just $0.009 per image.
Best Use Cases
- Content Creation — Swap faces for memes, social media posts, and creative projects.
- Entertainment & Fun — See yourself in different scenes, outfits, or styles.
- Design & Prototyping — Quickly visualize face placements in mockups and compositions.
- Video Production — Generate face-swapped stills for storyboarding and pre-visualization.
Pro Tips
- Use a clear, well-lit source face with minimal occlusion (no sunglasses or heavy shadows) for the best results.
- The source face should be front-facing or near-frontal — extreme angles may reduce quality.
- Higher-resolution input images generally produce sharper, more detailed outputs.
- If the result looks unnatural, try a different source photo with better lighting or angle match.
Notes
- If you provide a URL instead of uploading locally, make sure the URL is publicly accessible. A successfully accessible image will display a preview in the interface.
- Please use this model responsibly and in compliance with applicable laws and platform policies.
Related Models
- Wan2.1 I2V 480p — Generate videos from images for animated face-swap storytelling.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/half-moon-ai/image-face-swap" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| source_face | string | Yes | - | - | Source facial image (bmp, jpeg, png, tiff, webp). |
| target_image | string | Yes | - | - | Target image to swap face onto (bmp, jpeg, png, tiff, webp). |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated image. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |