Skip to main content
POST
Head Swap

Headers

Authorization
string

Body

application/json
reference_img
string<uri>
required

Publicly accessible image URL. The body, pose and aspect ratio of this image are kept.

Minimum string length: 1
Example:

"https://cdn.goenhance.ai/images/static/demo/face-swap-1.jpg"

source_img
string<uri>
required

Publicly accessible image URL. The head is taken from this image.

Minimum string length: 1
Example:

"https://cdn.goenhance.ai/images/static/demo/face-swap-2.jpg"

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required