Loading...
Loading...
Relight a still image — change the lighting setup, color temperature, direction, or mood — on RunComfy via the `runcomfy` CLI. Routes to Qwen Edit 2509's dedicated `relight` LoRA endpoint for purpose-built relighting, with fallback to identity-preserving edit endpoints (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when prose lighting language is enough. Use for product relighting (studio softbox → window light), portrait mood shift (overcast → golden hour), or color-grade change. Triggers on "relight", "relighting", "change the lighting", "make it golden hour", "studio lighting", "rim light", "blue hour", "soft window light", "change light direction", "color temperature", or any explicit ask to alter how a still is lit.
npx skill4agent add agentspace-so/runcomfy-agent-skills relight# 1. Install (see runcomfy-cli skill for details)
npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version
# 2. Sign in
runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token>
# 3. Relight
runcomfy run qwen/qwen-edit-2509/lora/relight \
--input '{"image": "...", "prompt": "..."}' \
--output-dir ./outruncomfy-cliqwen/qwen-edit-2509/lora/relightPurpose-built relighting LoRA on Qwen Edit 2509. Tuned specifically for changing lighting direction, color temperature, intensity, and mood while preserving subject identity, pose, and framing. Pick for: precise lighting control ("golden hour key light from left, soft fill from right, no rim"), brand product relighting, portrait mood shifts. Avoid for: edits that aren't really about lighting — use generic image edit.
google/nano-banana-2/editIdentity-preserving edit driven by spatial / prose language. Lighting changes via prompt:. Pick for: lighting change as part of a broader edit pass (also swapping background, adding objects). Avoid for: relighting-only when you want maximum lighting fidelity — use Qwen Edit Relight."convert to golden hour with warm key light from the left"
openai/gpt-image-2/editMulti-ref edit; can reference an image with the target lighting style and apply it. Pick for: "match the lighting of this reference photo" workflows with explicit reference images. Avoid for: pure prose lighting description — Qwen Edit Relight wins.
blackforestlabs/flux-1-kontext/pro/editSingle-instruction, high-preservation. Use form:Pick for: surgical lighting tweak on one image without affecting anything else."Keep everything exactly. Change the lighting to soft window light from the left, late-afternoon warm temperature."
runcomfy run qwen/qwen-edit-2509/lora/relight \
--input '{
"image": "https://your-cdn.example/product.jpg",
"prompt": "Relight as golden-hour studio: warm 3200K key light from camera-left at 45°, soft cool fill from right, no rim light, preserve product orientation and color identity."
}' \
--output-dir ./out"golden hour""studio softbox""overcast diffuse""single hard spotlight""window light""blue hour""warm 3200K""neutral 5500K""cool 6500K""camera-left at 45°""top-down""3/4 from right""behind subject (rim)""soft""hard""high-contrast""flat""preserve subject pose, framing, and color identity""key light from left, soft fill from right, hair rim from behind""golden hour""blue hour""high-noon""overcast afternoon"runcomfy run google/nano-banana-2/edit \
--input '{
"prompt": "Keep the subject and pose exactly. Relight as soft window light from the left, late-afternoon warm color temperature. Add subtle shadow on the right side of the face.",
"image_urls": ["https://your-cdn.example/portrait.jpg"]
}' \
--output-dir ./outimage-edit"warm window light from camera-left, soft shadow on counter, late-afternoon temperature, preserve product orientation""golden hour rim from behind, warm soft key from front-left, preserve identity"images: [source, lighting-reference]"Apply the lighting (direction, color temperature, contrast) of image 2 to image 1. Preserve image 1's subject identity."image_urlsai-image-generationqwen-imagebest-image-editing-models| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
--output-dirnpm i -g @runcomfy/clinpx -y @runcomfy/cliruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comBash(runcomfy *)runcomfy-cliimage-editai-image-generationimage-inpainting