Authentication
Authenticate every request with an API key in the X-API-Key request header.
Getting a key
- Create an account at lushair.ai and sign in.
- Open My Account. Your key appears under API & Subscriptions → API Keys once your plan is active.
- 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
| HTTP | Response Body | Meaning |
|---|---|---|
| 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 JSONcodefield is not always equal to the HTTP status. Use the HTTP status for control flow and themsgfield 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.
Updated 21 days ago
Did this page help you?
