Get the face_id and a basic avatar with a neutral facial expression using a photo and style.
curl --location 'https://public-api.mirror-ai.net/v2/generate?style=<STYLE>' \ --header 'X-Token: <YOUR TOKEN HERE>' \ --form 'photo=@"<PATH/TO/YOUR/PHOTO>"'
curl --location 'https://public-api.mirror-ai.net/v2/generate?style=<STYLE>' \ --header 'X-Token: <YOUR TOKEN HERE>' \ --header 'Content-Type: image/png' \ --data '@<PATH/TO/YOUR/PHOTO>' ```
Success - 200
{ "ok": true, "face": { "id": "jaY7nlANTSmHh6oOoN38gg", "version": "yB4", "url": "https://f.mirror-ai.net/x/gvcqWDsYjzG6gP5jUvoNRAIZ_p-eBaVcdd_GJY2f9CK0c2c3rW-Oe00QghMkbmo9SdYdN5CpmBkokrvqWx8Xq6q3E7QkSpbBQ-GRTMifaHo" } }
Last updated 1 year ago