Ecommerce product photos on white → grounded floor shadows via FLUX.2 Klein 9B (SDNQ 4-bit) on Runpod Serverless.
| Field | Default | Notes |
|---|---|---|
image / images |
— | base64 JPEG/PNG |
shadows |
simple |
simple | detailed |
max_side |
768 |
|
jpeg_quality |
92 |
B64=$(base64 -w0 product.jpg)
curl -X POST "https://api.runpod.ai/v2/$ENDPOINT_ID/runsync" \
-H "Authorization: Bearer $RUNPOD_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"input\": {\"image\": \"$B64\", \"shadows\": \"detailed\"}}"Response: { "images": ["<base64_jpeg>", ...], "count": N, "image": "..." } (image only when count == 1).
docker build -t YOUR_USER/relight:latest .
docker push YOUR_USER/relight:latestMount network volume with weights at /runpod-volume/models/flux2-klein-9b-sdnq-4bit (MODEL_DIR). GPU: RTX 4090 24GB. Scale-to-zero by default; set workersMin=1 + EAGER_LOAD=1 for warm workers.

