About Face Swap Pro
Precise face swap that keeps natural skin texture.
Call it with the model name popnow/face-swap-pro-v1/edit on POST /jobs/createTask, from $0.16.
Introduction
Overview
Face Swap Pro API aligns facial landmarks in two photographs for a precise identity transfer, with optional enhancement disabled by default. Pro suits close inspection of an existing portrait: compare the transferred features against the target’s hairline and photographic texture before deciding whether to enable enhancement.
Inputs and controls
For Pro, image_url supplies the photograph to edit, including the hairstyle, pose and setting you intend to keep. Choose a sharp reference_image_url for Pro with lighting close to the target; its face supplies the identity rather than a new composition. Pro accepts two required image URLs and optional face_enhance; it has no prompt, mask, strength or seed control.
Review and limits
Prepare one visible face per Pro input as JPEG, PNG or WebP, using directly downloadable links; strong profiles, blur and occlusion make landmark alignment harder.
Task and delivery
Pro delivers one edited photograph through a result URL; it exposes no output-size selector, detection coordinates or mask download.
Authorised use
face_enhance is false by default on Pro; enable it only when you want an additional face-enhancement pass instead of the default untreated finish.
popnow/face-swap-pro-v1/edit
Request parameters
| Parameter | Required | Description |
|---|---|---|
face_enhance | No | An extra pass that sharpens faces. Default: false |
image_url | Yes | The picture to start from. |
reference_image_url | Yes | The picture whose face or look gets carried over. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| Standard | $0.16 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
API quick start
Call the Face Swap Pro API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model popnow/face-swap-pro-v1/edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "popnow/face-swap-pro-v1/edit",
"input": {
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"reference_image_url": "https://media.popnow.ai/influencer/examples/ava.webp"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
Face Swap Pro API questions
How much does the Face Swap Pro API cost?
Face Swap Pro costs $0.16 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Face Swap Pro in the API?
Put popnow/face-swap-pro-v1/edit for Face Swap in the model field of POST /jobs/createTask.
What is Face Swap Pro API designed for?
Pro suits close inspection of an existing portrait: compare the transferred features against the target’s hairline and photographic texture before deciding whether to enable enhancement.
Which image should go in image_url?
For Pro, image_url supplies the photograph to edit, including the hairstyle, pose and setting you intend to keep.
Is there a prompt or a mask?
Pro accepts two required image URLs and optional face_enhance; it has no prompt, mask, strength or seed control.
Why can I not pin a seed here?
There is no seed field in Pro’s public schema; compare input pairs directly, or consult Face Swap when seed-based comparisons are needed.
What inputs work well with Face Swap Pro?
Prepare one visible face per Pro input as JPEG, PNG or WebP, using directly downloadable links; strong profiles, blur and occlusion make landmark alignment harder.
Can I try Face Swap Pro without writing code?
Run Face Swap Pro in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.