Render a photo
render_photoGenerate photorealistic images of 3D home designs with realistic lighting, sun position, and materials. Returns PNG; supports draft, good, or best quality and estimate or cancel options.
Instructions
Realistic photo (path traced: sun from compass location and time, lamps, glass). cam=i stored view, or view=visitor/aerial (yaw,pitch). quality draft (~10 s) | good | best; hour = local solar time (e.g. 9, 15.5, 20); w/h small. Returns PNG. One runs at a time, on at most half the cores (4): threads lowers that, max_s stops it past a deadline, estimate=true answers the budget and the work (pixels, rays, triangles, memory) without rendering, cancel=true stops the one running (sessions shows it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Height px (default 360, 64..1200) | |
| w | No | Width px (default 480, 64..1600) | |
| cam | No | Stored point of view index | |
| yaw | No | Aerial turn, degrees (default 60) | |
| hour | No | Local solar hour, 0–24 | |
| view | No | Default `aerial` | |
| max_s | No | Seconds it may take; past them it stops, and nothing is returned | |
| pitch | No | Aerial height angle, degrees (default 40) | |
| cancel | No | Stop the photo being rendered now (`sessions` shows it) | |
| quality | No | Default `draft` | |
| threads | No | Threads it may use, under the budget (half the cores, at most 4) | |
| estimate | No | Answer the budget and what the photo would take, without rendering |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| work | No | ||
| budget | No | ||
| measured | No | ||
| mimeType | No | ||
| memory_mb | No |