with open(f"set_memoji/{memoji_files[0]}", "rb") as image_file:
encoded_image = base64.b64encode(image_file.read())
files = { 'media': encoded_image }
headers = {
'Authorization':'API-Key Cph30qkLrdJDkjW-THCeyA',
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0'
}
rs = requests.post(url = "https://api.generated.photos/api/frontend/v1/images/similars", files=files, headers = headers)
print(rs.text)