To make a baby prediction, you need to send a POST request in the MULTIPART FORM DATA format to http://remote.luxand.com:8080/request.php, with the following parameters:
- client_name - your user name;
- client_password - MD5 hash of a concatenation of your password with the current date in the "Ymd" format. For example, if your password is "PASSWORD", and the current date is February 4th, 2013 you need to send the MD5 hash of the string "PASSWORD20130204". The API will tolerate a difference of one day from the current date (in the server's time zone);
- morphing_type - for Babymaker API, specify the string "baby";
- client_file1 - image containing a face in JPG or PNG format;
- client_file2 - image containing a face in JPG or PNG format;
- sex - specify "0" for female, or "1" for male;
- ethnicity - caucasian, asian, hispanic or african;
- emotion - smile, neutral or sad.
The server will send the resulting image in JPG format. In the case of any error, the server will return an error message in plain text.
User Name and Password Request
To request the user name and password, please fill in the following form and we will get back to you as soon as possible: