FaceSwap
Same Image Swap

API for Same Image Face Swapper

Authentication

An API key is required for all requests. You can generate an API key from the developers tab in your dashboard.

Header Attributes

ParameterValue
X-sourceweb
X-api-keyYOUR_API_KEY

Same Image Face Swap

Request URL

MethodURL
POSThttp://aiapi.aiphotocraft.com/api/faceswap/swapfacesameimage (opens in a new tab)

Body Parameters

ParameterTypeDescriptionRequired
srcimagefileSource image having two faces for swapYes*

*Required parameters

Response

The API returns the processed image with the faces swapped within the same image.

Response Content Type

application/json

Response Codes

CodeDescription
201Swap successful
400Bad request

Example

curl -X POST \
  http://aiapi.aiphotocraft.com/api/faceswap/swapfacesameimage \
  -H 'X-source: web' \
  -H 'X-api-key: YOUR_API_KEY' \
  -F 'srcimage=@/path/to/source.jpg'