relight
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.
What this skill does
# Relight
Change how a still is lit — direction, color temperature, intensity, mood — without redoing the shot. This skill routes to Qwen Edit 2509's dedicated relight LoRA when a purpose-built relighting endpoint matters, and to identity-preserving edit endpoints when prose lighting language is enough.
[runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) · [Qwen Edit relight](https://www.runcomfy.com/models/qwen/qwen-edit-2509/lora/relight?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight)
## Powered by the RunComfy CLI
```bash
# 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 ./out
```
CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.
---
## Pick the right model
Listed newest first.
**Qwen Edit 2509 Relight LoRA** — `qwen/qwen-edit-2509/lora/relight` *(default for dedicated relighting)*
> Purpose-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.
**Nano Banana 2 Edit** — `google/nano-banana-2/edit`
> Identity-preserving edit driven by spatial / prose language. Lighting changes via prompt: `"convert to golden hour with warm key light from the left"`.
> 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.
**GPT Image 2 Edit** — `openai/gpt-image-2/edit`
> Multi-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.
**FLUX Kontext Pro** — `blackforestlabs/flux-1-kontext/pro/edit`
> Single-instruction, high-preservation. Use form: `"Keep everything exactly. Change the lighting to soft window light from the left, late-afternoon warm temperature."`
> Pick for: surgical lighting tweak on one image without affecting anything else.
---
## Route 1: Qwen Edit Relight — default
**Model**: `qwen/qwen-edit-2509/lora/relight`
**Catalog**: [Qwen Edit relight](https://www.runcomfy.com/models/qwen/qwen-edit-2509/lora/relight?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) · [`qwen-image` collection](https://www.runcomfy.com/models/collections/qwen-image?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight)
### Invoke
```bash
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
```
### Prompting tips
- **Lead with the lighting type, then quantify**:
- Light source: `"golden hour"`, `"studio softbox"`, `"overcast diffuse"`, `"single hard spotlight"`, `"window light"`, `"blue hour"`
- Color temperature: `"warm 3200K"`, `"neutral 5500K"`, `"cool 6500K"`
- Direction: `"camera-left at 45°"`, `"top-down"`, `"3/4 from right"`, `"behind subject (rim)"`
- Intensity: `"soft"`, `"hard"`, `"high-contrast"`, `"flat"`
- **State preservation explicitly**: `"preserve subject pose, framing, and color identity"` — without this the model may drift.
- **Combine multi-light setups**: `"key light from left, soft fill from right, hair rim from behind"`.
- **Time-of-day shortcuts work**: `"golden hour"` / `"blue hour"` / `"high-noon"` / `"overcast afternoon"` all resolve to the right color temperature + softness.
---
## Route 2: Description-based edit (no relight LoRA)
When Qwen Relight isn't a fit (e.g. composite edit with other changes), use **Nano Banana 2 Edit**:
```bash
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 ./out
```
For broader edit treatment see [`image-edit`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/image-edit).
---
## Common patterns
### Product relight for catalog (white box → lifestyle)
- **Qwen Edit Relight** with `"warm window light from camera-left, soft shadow on counter, late-afternoon temperature, preserve product orientation"`
### Portrait mood shift
- **Qwen Edit Relight** with `"golden hour rim from behind, warm soft key from front-left, preserve identity"`
### Time-of-day swap on a landscape
- **Nano Banana 2 Edit** with prose — landscape relight benefits from broader scene context handling
### Match the look of a reference photo
- **GPT Image 2 Edit** with `images: [source, lighting-reference]` and `"Apply the lighting (direction, color temperature, contrast) of image 2 to image 1. Preserve image 1's subject identity."`
### Multi-image batch relight (whole SKU gallery to same lighting)
- **Nano Banana 2 Edit** with `image_urls` array — same lighting prompt across the batch
### What this skill doesn't do
- **Generate from scratch** — see [`ai-image-generation`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/ai-image-generation).
- **Relight a video** — RunComfy has ComfyUI workflows for product / video relighting (IC-Light variants); CLI endpoint is image-only today. See [runcomfy.com/comfyui-workflows](https://www.runcomfy.com/comfyui-workflows?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) for IC-Light video workflows.
---
## Browse the full catalog
- [`qwen-image` collection](https://www.runcomfy.com/models/collections/qwen-image?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) — Qwen Edit base + LoRA variants (relight, skin, others)
- [`best-image-editing-models` collection](https://www.runcomfy.com/models/collections/best-image-editing-models?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight)
- [Train a custom relight LoRA](https://www.runcomfy.com/trainer?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight) — capture a brand's lighting signature as a LoRA and apply on relight pass
---
## Exit codes
| 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 |
Full reference: [docs.runcomfy.com/cli/troubleshooting](https://docs.runcomfy.com/cli/troubleshooting?utm_source=skills.sh&utm_medium=skill&utm_campaign=relight).
## How it works
The skill picks Qwen Edit Relight LoRA for dedicated lighting work, falls back to broader edit endpoints when relight is part of a composite pass. The CLI POSTs to the Model API, polls request status, and downloads the result into `--output-dir`.
## Security & Privacy
- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.
- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.
- **Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.