Skip to content
superstyle

API Reference

The superstyle API is organized around REST. Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.

Just getting started? Check out our quickstart guide to make your first API call in under 5 minutes.

All API requests are made to:

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

Authenticate your requests by including your API key in the X-API-Key header. You can generate and manage API keys from the Developer Portal.

All API requests (except the health check endpoint) must include a valid API key. Requests without authentication will return a 401 Unauthorized error. Requests with an invalid key will return 403 Forbidden.

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

For more details, see Authentication.

EndpointMethodDescriptionDocs
/GETHealth check — verify the API is running
/try_on_outfitPOSTGenerate a realistic image of a person wearing an outfit, from a reference image and/or descriptionView
/imagesGETList all generated images for your accountView
/images/:idGETGet metadata for a specific generated imageView
/analyze_outfitPOSTAnalyze an image and identify individual clothing itemsView
/style_mePOSTGet personalized outfit recommendations (Swag Mode)View
/usageGETView your API usage statisticsView

All successful responses return a 200 status code with a JSON body. The shape of the response depends on the endpoint — see individual endpoint docs for details.

{
"items": [...],
"metadata": { ... }
}

When an error occurs, the API returns a JSON object with an error field describing what went wrong:

{
"error": "Missing required field: image_url"
}

All endpoints except /usage are rate limited to 20 requests/day per user with a maximum of 1 concurrent request. Exceeding the limit returns 429 Too Many Requests.

See Rate Limits for full details, headers, and retry examples.

CodeDescription
200OK — Request succeeded
400Bad Request — Missing or invalid parameters
401Unauthorized — No API key provided
403Forbidden — Invalid or revoked API key
404Not Found — Endpoint does not exist
429Too Many Requests — Rate limit exceeded
500Internal Server Error — Something went wrong on our end