Swap
Consistent identity - Upload face image to swap
Deprecation notice
This endpoint is deprecated. We recommend using alternative endpoints to ensure continued support and compatibility.
Reserved for premium users
Example:
import requests
import json
url_api = 'https://api.piktid.com/api'
face_full_path = 'url_of_your_face_to_swap'
options = {}
response = requests.post(url_api+'/swap/face',
headers={'Authorization': 'Bearer '+TOKEN},
files={'face': open(face_full_path, 'rb')},
data={'options':json.dumps(options)},
)
face_name = response_json = json.loads(response.text).get('face_name')Examples
curl -X POST "https://api.piktid.com/api/swap/face" \
-H "Content-Type: application/json" \
-d '{}'{
"face_name": "string"
}{
"code": 0,
"message": "string",
"description": "string"
}{
"code": 0,
"message": "string",
"description": "string"
}{
"code": 0,
"message": "string",
"description": "string"
}