Quick Start
Don't worry. We get it! It's always more fun to jump right in and then read the documentation if something breaks. We got you covered.
Get your API Key
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
The best way to interact with our APIs is to use standard HTTP verbs as our APIs are organized around REST.
Before you start using the skinshade
or lips
endpoint, you need to generate an API key. This can be done by making a GET request to the generatekey
endpoint. This endpoint is rate-limited to 1 request per month for the free tier.
Here is an example of how to make a request to the generatekey
endpoint using curl:
The response will be a JSON object containing your API key:
Make your first request
Send an authenticated request to our endpoints to make your first request.
This skinshade
endpoint will fetch the exact skin shade of the person from the image file based on the user's skin tone and undertones, which is nice.
The lips
endpoint will return the processed image with the lipstick color applied to the lips.
The hairswap
endpoint returns a processed image with the newly selected hairstyle.
Once you have your API key, you can start using the endpoints.
All endpoints accept POST requests with an image file in the request body. The lips
endpoint also requires the name of a color and the hairswap
endpoint also requires a number corresponding to the preferred hairstyle.
The image file should be png, jpg, jpeg, or heic.
Here is an example of how to make a request to the skinshade
endpoint using curl:
The response will be a JSON object containing the detected skin shade and tone range:
Take a look at how you can use the lips
endpoint via curl:
The response will be a JSON object containing a base64 string of the binary data of the image with the lipstick color applied:
Here is how you can send a request to the hairswap
endpoint via curl:
You will get a JSON object response containing a base64 string of the binary data of the image with the new hairstyle:
Last updated