Skip to main content

Quick Start

Send a POST request to /run with room parameters to receive encoded images for daylight analysis.

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']}")

Next Steps

API Reference - Complete endpoint documentation

Overview - Pricing, authentication, and use cases