Skip to content

API Overview

https://mcll3bnfubyazfg6wekv3xc6fi0dgpyk.lambda-url.us-east-1.on.aws

All POST endpoints accept JSON request bodies. Set the Content-Type: application/json header.

Include your API key in the X-API-Key header:

Terminal window
curl -X POST https://mcll3bnfubyazfg6wekv3xc6fi0dgpyk.lambda-url.us-east-1.on.aws/identify_clothing \
-H "X-API-Key: ss_your_key_here" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://example.com/outfit.jpg"}'

All responses return JSON. Successful responses return a 200 status code with the endpoint-specific payload.

Errors return a JSON object with an error field:

{
"error": "Description of what went wrong"
}
CodeMeaning
200Success
400Bad request — missing or invalid parameters
401Unauthorized — missing API key
403Forbidden — invalid API key
404Not found — endpoint doesn’t exist
500Internal server error

There are currently no hard rate limits, but please be reasonable with usage. Image generation endpoints (/generate_image, /style_me) are compute-intensive and take 10-30 seconds per request.

EndpointMethodDescription
/generate_imagePOSTGenerate virtual try-on images
/identify_clothingPOSTIdentify clothing items in an image
/style_mePOSTGet personalized outfit recommendations
/usageGETView API usage statistics