[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"spec-face-swapper":3},{"host":4,"swagger":5,"info":6,"basePath":10,"schemes":11,"consumes":13,"produces":15,"securityDefinitions":16,"tags":25,"paths":29,"definitions":289},"api-faceswapper.icons8.com","2.0",{"version":7,"title":8,"description":9},"1.0.0","Face Swapper API","This is a public version of the Face Swapper API","\u002Fapi",[12],"https",[14],"application\u002Fjson",[14],{"api-key":17,"token":22},{"type":18,"name":19,"in":20,"description":21},"apiKey","Api-Key","header","Your key is on the [API keys page](\u002Fapi-keys).",{"type":18,"name":23,"in":24,"description":21},"token","query",[26],{"name":27,"description":28},"Process images","Operations about process images",{"\u002Fv1\u002Fget_bbox":30,"\u002Fv1\u002Fprocess_image":135,"\u002Fv1\u002Fprocess_image\u002F{id}":200,"\u002Fv1\u002Fprocess_images":243},{"post":31},{"description":32,"summary":33,"operationId":34,"tags":35,"security":36,"parameters":40,"responses":57},"Finds the faces on each image and tells where they are: a box around each face with the detection confidence, and five landmark points. The landmarks of a face let a face swap choose which face to take and which face to replace. The answer comes back at once, and nothing is stored.","Detect faces on images","postV1GetBbox",[27],[37],{"api-key":38,"token":39},[],[],[41],{"name":42,"in":42,"required":43,"schema":44},"body",true,{"type":45,"required":46,"properties":48},"object",[47],"urls",{"urls":49},{"type":50,"description":51,"example":52,"items":55},"array","http(s) image urls",[53,54],"https:\u002F\u002Fexample.com\u002Fphotos\u002Fportrait.jpg","https:\u002F\u002Fexample.com\u002Fphotos\u002Fgroup.png",{"type":56},"string",{"201":58,"401":123,"422":129},{"description":59,"schema":60,"examples":63},"Response",{"type":50,"items":61},{"$ref":62},"#\u002Fdefinitions\u002FMain_Bbox",{"application\u002Fjson":64},[65,85],{"img_url":53,"faces":66},[67],{"bbox":68,"landmarks":74},[69,70,71,72,73],412.64,188.31,598.07,437.92,0.8742,[75,76,77,78,79,80,81,82,83,84],468.21,289.74,551.36,285.93,511.82,337.48,476.95,382.61,545.27,379.36,{"img_url":54,"faces":86},[87,105],{"bbox":88,"landmarks":94},[89,90,91,92,93],986.4,331.08,1131.77,541.26,0.9127,[95,96,97,98,99,100,101,102,103,104],1021.48,402.17,1098.62,398.85,1062.9,447.31,1030.12,489.64,1093.05,486.72,{"bbox":106,"landmarks":112},[107,108,109,110,111],254.19,297.55,392.83,498.14,0.8561,[113,114,115,116,117,118,119,120,121,122],291.36,372.9,356.08,370.41,324.77,414.62,297.53,452.18,351.2,450.07,{"description":124,"schema":125,"examples":127},"Unauthorized",{"$ref":126},"#\u002Fdefinitions\u002FAPIError",{"application\u002Fjson":128},{"error":124},{"description":130,"schema":131,"examples":132},"Unprocessable error",{"$ref":126},{"application\u002Fjson":133},{"error":134},"urls is missing",{"post":136},{"description":137,"summary":138,"operationId":139,"tags":140,"security":141,"parameters":145,"responses":182},"Starts a face swap that puts faces from one or more source photos onto a target photo. The swap runs in the background, so the answer comes back at once, without a result. Check the job until it is ready or has failed.","Start a face swap","postV1ProcessImage",[27],[142],{"api-key":143,"token":144},[],[],[146],{"name":42,"in":42,"required":43,"schema":147},{"type":45,"required":148,"properties":151},[149,150],"target_url","face_tasks",{"target_url":152,"face_tasks":154},{"type":56,"description":153,"example":54},"jpg\u002Fjpeg\u002Fwebp\u002Fpng image url",{"type":50,"items":155},{"type":45,"required":156,"properties":158},[157],"source_url",{"source_url":159,"source_landmarks":160,"target_landmarks":166,"boundary_adjustments":170},{"type":56,"description":153,"example":53},{"type":50,"description":161,"example":162,"items":163},"The `landmarks` of the face to take from the source image, in the form face detection returns them",[75,76,77,78,79,80,81,82,83,84],{"type":164,"format":165},"number","float",{"type":50,"description":167,"example":168,"items":169},"The `landmarks` of the face to replace on the target image, in the form face detection returns them",[95,96,97,98,99,100,101,102,103,104],{"type":164,"format":165},{"type":45,"properties":171},{"emotion_fear":172,"emotion_anger":175,"emotion_disgust":176,"emotion_surprise":177,"emotion_contempt":178,"emotion_happiness":179,"age":180,"gender":181},{"type":173,"default":174},"integer",0,{"type":173,"default":174},{"type":173,"default":174},{"type":173,"default":174},{"type":173,"default":174},{"type":173,"default":174},{"type":173,"default":174},{"type":173,"default":174},{"201":183,"401":191,"422":195},{"description":59,"schema":184,"examples":186},{"$ref":185},"#\u002Fdefinitions\u002FMain_BatchImage",{"application\u002Fjson":187},{"id":188,"status":174,"statusName":189,"processed":190},"66f2a1c4e8b1d20007a3f9c2","queue",null,{"description":124,"schema":192,"examples":193},{"$ref":126},{"application\u002Fjson":194},{"error":124},{"description":130,"schema":196,"examples":197},{"$ref":126},{"application\u002Fjson":198},{"error":199},"target_url is missing",{"get":201},{"description":202,"summary":203,"operationId":204,"tags":205,"security":206,"parameters":210,"responses":217},"Shows the state of a face swap job and, when the job is finished, the resulting image. A job waits in the queue, then runs, then ends as ready or as an error. A failed job does not change again; start a new one to retry. Only the jobs you started through this API are found.","Get a face swap result","getV1ProcessImageId",[27],[207],{"api-key":208,"token":209},[],[],[211],{"name":212,"in":213,"description":214,"required":43,"type":56,"pattern":215,"example":216},"id","path","ID","^[a-f0-9]{24}$","5a26a7d177840430d1af749e",{"200":218,"401":229,"404":233,"422":238},{"description":59,"schema":219,"examples":220},{"$ref":185},{"application\u002Fjson":221},{"id":188,"status":222,"statusName":223,"processed":224},2,"ready",{"width":225,"height":226,"type":227,"url":228},1200,800,".jpg","https:\u002F\u002Fai-cdn.icons8.com\u002FWq3oZr1bXk9TfA2mYd7LsN4vC8eHjP0uGxRtB6nKiQs\u002Fskp:jpg\u002FczM6Ly9yMi1haS1n\u002FZW5lcmF0ZWQtcGhv\u002FdG9zL2ZhY2Vzd2Fw\u002FcGVyLXVwbG9hZHMv\u002FcmVzdWx0cy80MjQv\u002FM2YyYjdjMWUtOGQ0\u002FYS00ZTZmLTliMWMt\u002FMmE1ZDdlOWYwYzMx\u002FLmpwZw.jpg",{"description":124,"schema":230,"examples":231},{"$ref":126},{"application\u002Fjson":232},{"error":124},{"description":234,"schema":235,"examples":236},"Image not found",{"$ref":126},{"application\u002Fjson":237},{"error":234},{"description":130,"schema":239,"examples":240},{"$ref":126},{"application\u002Fjson":241},{"error":242},"id is invalid",{"get":244},{"description":245,"summary":246,"operationId":247,"tags":248,"security":249,"parameters":253,"responses":265},"Lists the face swap jobs you started through this API, newest first, page by page. Each job shows its state and, when it is finished, the resulting image.","List your face swap jobs","getV1ProcessImages",[27],[250],{"api-key":251,"token":252},[],[],[254,260],{"name":255,"default":256,"minimum":256,"in":24,"description":257,"required":258,"type":173,"format":259},"page",1,"Page number",false,"int32",{"name":261,"default":262,"minimum":256,"maximum":263,"in":24,"description":264,"required":258,"type":173,"format":259},"perPage",10,100,"Number of results per page. Max: 100",{"200":266,"401":280,"422":284},{"description":59,"schema":267,"examples":269},{"$ref":268},"#\u002Fdefinitions\u002FMain_BatchImages",{"application\u002Fjson":270},{"total":271,"images":272},3,[273,274,277],{"id":188,"status":174,"statusName":189,"processed":190},{"id":275,"status":256,"statusName":276,"processed":190},"66f29e7be8b1d20007a3f9b8","processing",{"id":278,"status":222,"statusName":223,"processed":279},"66f29c02e8b1d20007a3f9a1",{"width":225,"height":226,"type":227,"url":228},{"description":124,"schema":281,"examples":282},{"$ref":126},{"application\u002Fjson":283},{"error":124},{"description":130,"schema":285,"examples":286},{"$ref":126},{"application\u002Fjson":287},{"error":288},"perPage does not have a valid value",{"Main_Face":290,"Main_Bbox":303,"Main_BatchImage":313,"Main_BatchImages":328,"Asset":336,"APIError":347},{"type":45,"required":291,"properties":294},[292,293],"bbox","landmarks",{"bbox":295,"landmarks":299},{"type":50,"description":296,"example":297,"items":298},"The face box in pixels of the source image, and the detection confidence from 0 to 1: [x1, y1, x2, y2, probability]",[69,70,71,72,73],{"type":164,"format":165},{"type":50,"description":300,"example":301,"items":302},"Five (x, y) points in pixels, flattened: the two eyes, the nose tip and the two mouth corners",[75,76,77,78,79,80,81,82,83,84],{"type":164,"format":165},{"type":45,"required":304,"properties":307},[305,306],"img_url","faces",{"img_url":308,"faces":310},{"type":56,"description":309,"example":53},"The image url from the request",{"type":50,"items":311},{"$ref":312},"#\u002Fdefinitions\u002FMain_Face",{"type":45,"required":314,"properties":317},[212,315,316],"status","statusName",{"id":318,"processed":319,"status":321,"statusName":324},{"type":56,"example":188},{"$ref":320},"#\u002Fdefinitions\u002FAsset",{"type":173,"format":259,"enum":322,"example":222},[174,256,222,271,323],4,{"type":56,"enum":325,"example":223},[189,276,223,326,327],"overuse","error",{"type":45,"required":329,"properties":332},[330,331],"total","images",{"total":333,"images":334},{"type":173,"format":259},{"type":50,"items":335},{"$ref":185},{"type":45,"required":337,"properties":342},[338,339,340,341],"width","height","type","url",{"width":343,"height":344,"type":345,"url":346},{"type":173,"format":259},{"type":173,"format":259},{"type":56},{"type":56},{"type":45,"description":348,"properties":349},"APIError model",{"error":350},{"type":56,"example":351},"Error"]