Products

Face Swapper API v1.0.0

This is a public version of the Face Swapper API

#

Security definitions

You can authenticate using one of the following methods:

  • An Api-Key header. For example, Api-Key: YOUR_API_KEY.
  • A token query parameter. For example, if you want to make a request to a resource with URL /endpoint, you can specify your key as /endpoint?token=YOUR_API_KEY

Make sure that each request you perform includes your API key in one of the specified formats. Otherwise, the request will fail.

#

Get list of swaped faces



Get list of swaped faces

#

Parameters

page optional integer default 1

Page number


perPage optional integer default 10

Number of results per page. Max: 100


#

Responses

200 - Get list of swaped faces
#

Body

total optional integer


images optional array of object


id optional string


processed optional object


width optional integer


height optional integer


type optional string


url optional string



status optional integer


statusName optional string



#

Swap faces by urls



Swap faces by urls

#

Request body

target_url optional string


face_tasks optional array of object


source_url optional string


source_landmarks optional array of number


target_landmarks optional array of number


boundary_adjustments optional object


emotion_fear optional integer


emotion_anger optional integer


emotion_disgust optional integer


emotion_surprise optional integer


emotion_contempt optional integer


emotion_happiness optional integer


age optional integer


gender optional integer




#

Responses

201 - Swap faces by urls
#

Body

id optional string


processed optional object


width optional integer


height optional integer


type optional string


url optional string



status optional integer


statusName optional string


#

Get swap result



Get swap result

#

Parameters

id required string


#

Responses

200 - Get swap result
#

Body

id optional string


processed optional object


width optional integer


height optional integer


type optional string


url optional string



status optional integer


statusName optional string


#

Get bbox for images by urls



Get bounding box and landmarks for images by urls

#

Parameters

urls required array of string


#

Responses

201 - Get bbox for images by urls
#

Body

img_url optional string


faces optional array of object


bbox optional array of number


landmarks optional array of number