Skip to main content

LUX API Overview

The LUX API converts room geometry into encoded images for machine learning-based daylight predictions. Send room parameters via HTTP, receive encoded visualizations for Daylight Factor (DF) or Daylight Autonomy (DA) analysis.

Pricing

Commercial (Hosted): Using https://api-lux.upskiller.xyz/v1 requires an API token and is subject to usage fees.

Free (Self-Hosted): Deploy locally at no cost. See Docker Setup for setup instructions.

Authentication

All requests to the hosted API require an API token.

Authorization: Bearer YOUR_API_TOKEN

Join the beta program to obtain an API token.

Base URL

https://api-lux.upskiller.xyz/v1

Quick Example

import requests

url = "https://api-lux.upskiller.xyz/v2/run"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN"
}
payload = {
"model_type": "df_default",
"parameters": {
"height_roof_over_floor": 2.7,
"floor_height_above_terrain": 3.0,
"room_polygon": [[0, 0], [5, 0], [5, 4], [0, 4]],
"windows": {
"main_window": {
"x1": -0.6, "y1": 0.0, "z1": 0.9,
"x2": 0.6, "y2": 0.0, "z2": 2.4,
"window_frame_ratio": 0.15
}
}
},
"mesh": [
[10, 0, 0], [10, 0, 8], [10, 20, 8],
[10, 20, 8], [10, 20, 0], [10, 0, 0]
]
}

response = requests.post(url, headers=headers, json=payload)

if response.status_code == 200:
result = response.json()
print(f"Status: {result['status']}")

Available Endpoints

MethodHTTP RequestDescription
runPOST /runConverts room geometry into encoded images for daylight prediction
horizonPOST /horizonCalculates horizon obstruction angle from window position
zenithPOST /zenithCalculates zenith obstruction angle from window position
obstructionPOST /obstructionCalculates both horizon and zenith obstruction angles

Simulation Modes

Choose a model type based on your analysis needs:

Model TypeAnalysisMaterials
df_defaultDaylight FactorFixed per-surface reflectances
da_defaultDaylight AutonomyFixed per-surface reflectances
df_customDaylight FactorCustom material reflectances
da_customDaylight AutonomyCustom material reflectances

Response Format

Returns JSON with daylight factor matrix and room mask.

Use Cases

Batch analyze apartments in multi-unit buildings. Automate compliance checks for SS-EN 17037 or other building codes. Integrate into parametric design workflows. Generate custom daylight visualizations. Conduct parametric studies on room or window configurations.

Rate Limits

Hosted API has no enforced rate limits currently. Subject to change as service scales. Self-hosted deployments have no restrictions.

Next Steps

API Reference - Complete endpoint documentation

Required Parameters - Parameter specifications

Simulation Modes - Detailed mode explanations

Local Deployment - Self-hosting instructions