Authentication

Authenticate every request with an API key in the X-API-Key request header.

Getting a key

  1. Create an account at lushair.ai and sign in.
  2. Open My Account. Your key appears under API & Subscriptions → API Keys once your plan is active.
  3. Keys are prefixed lush_live_sk_. Treat them as secrets: send them only in the header, never in URLs or client-side code.

Base URL

All Glamskin endpoints are served on https://api.glamskin.ai. Calling them on any other domain returns 404.

Errors

HTTPResponse BodyMeaning
401{"code": 400, "data": {}, "msg": "Invalid API Key"}The API key is missing or invalid.
400{"code": 400, "msg": "Missing required parameter ..."}A required parameter is missing. The message identifies the missing field.
404—The domain is incorrect or the requested endpoint does not exist.
📘

The JSON code field is not always equal to the HTTP status. Use the HTTP status for control flow and the msg field for diagnostics.

Timeouts

Analysis is synchronous: the response contains the full result. Multi-position calls with many images take longest; set client timeouts to 240 seconds. Fewer images return faster.


Did this page help you?