Pricing
Compare models →| Operation | Price (USD) |
|---|---|
| Full head swap (per image run) | $0.025 |
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The image that contains the face to be replaced. |
face_imageRequired | string | The face image as reference. |
output_format | string | The format of the output image.jpegpngwebp"jpeg" |
README
OpenSIAI Image Head Swap
OpenSIAI Image Head Swap is an advanced AI model for replacing the entire head (face + hair + outline) of a person in a static image using a reference portrait. It keeps body, pose and background intact while rebuilding a new, realistic head that matches the scene’s lighting and perspective.
🎬 What this model does
- Replaces the full head region of the subject (face, hair, silhouette, accessories)
- Preserves body pose, clothing, background and general composition
- Adapts the new head to scene lighting, color tone and camera angle
- Produces clean, watermark-free outputs ready for editing or publication
⚙️ Why it looks realistic
- Full-head geometry replacement
Swaps the whole head contour instead of only facial features, avoiding mismatched hairlines or skull shape.
- Pose and expression preservation
Uses the base image to keep head angle, gaze direction and expression consistent with the original shot.
- Lighting and color matching
Automatically adjusts skin tone, shadows and highlights so the new head sits naturally in the scene.
- High-resolution blending
Seamless edges around neck, hair and accessories, minimizing visible artifacts.
🧾 Inputs and Parameters
Required fields:
- image:
Base image whose body, background and composition you want to keep.
- face_image:
Reference portrait that defines the new identity/head to be inserted.
Other options:
- output_format:
Choose the final image format:
- jpeg
- png
- webp
💰 Pricing
| Operation | Price (USD) |
|---|---|
| Full head swap (per image run) | $0.025 |
💡 Best Use Cases
- Casting and concept design
Test different actors’ heads on the same body or costume for film, TV or advertising pitches.
- Privacy and anonymization
Replace real heads with synthetic or authorized identities while keeping scenes and actions intact.
- Photo and key art exploration
Quickly iterate on hero posters, thumbnails and cover images with different looks.
- Social media and creator workflows
Create stylized or character-based versions of yourself while preserving your original photos’ composition.
📎 Tips and Notes
- Use clear, reasonably high-resolution portraits for both image and face_image.
- Try to keep camera angle and approximate lighting similar between the two inputs for best results.
- Avoid heavily occluded faces or extreme motion blur in the base image.
- Always ensure you have the legal right and consent to use all images and likenesses involved in your edits.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Image Head Swap Portrait Transfer API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/image-head-swap for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://drz0f01yeq1cx.cloudfront.net/1739866170346-6020-豆包2.png",
"face_image": "https://drz0f01yeq1cx.cloudfront.net/1739866170346-6020-豆包2.png",
"output_format": "jpeg"
}Image Head Swap Portrait Transfer API — Frequently asked questions
What is the Image Head Swap API?
Image Head Swap is a OpenSIAI model for image face swapping, exposed as a REST API on OpenSIAI. Instant online AI head & face swap for photos with no watermark, delivering realistic, shareable results in seconds. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Image Head Swap API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/image-head-swap.
How much does Image Head Swap cost per run or per second?
Image Head Swap starts at $0.025 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Image Head Swap accept?
Key inputs: image, face_image, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/image-head-swap.
How long does Image Head Swap take to generate?
Reported generation time on OpenSIAI is around 12 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Image Head Swap outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
