[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Qwen Image Edit 2509 Lighting Restoration](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-lighting-restoration)

# How to Use Qwen Image Edit 2509 Lighting Restoration in opencode

Qwen Image Edit 2509 Lighting Restoration removes harsh shadows and bright spots from existing photos. Its fixed lighting cleanup task suits portraits, product shots, and preparation for later relighting.

|  |  |
| --- | --- |
| Model | Qwen Image Edit 2509 Lighting Restoration |
| Available through | fal |
| Category | Image |
| Price | Up to $0.0455 per run at the default inputs. $0.0455 per unit of `num_images`. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen Image Edit 2509 Lighting Restoration in opencode

- Use Qwen Image Edit 2509 Lighting Restoration on the headshot in public/team. Save a separate copy and show a before-and-after comparison.
- Use Qwen Image Edit 2509 Lighting Restoration on the product photos in assets/products that have harsh shadows. Keep the originals and create a review gallery.
- Use Qwen Image Edit 2509 Lighting Restoration on one sample photo from our catalog. Compare the lighting before processing the rest.
- Use Qwen Image Edit 2509 Lighting Restoration to prepare the selected portrait for a later relighting pass. Save the result beside the source.
- Use Qwen Image Edit 2509 Lighting Restoration on the selected training photos. Create a manifest pairing each original with its edited result.

## How to set up Qwen Image Edit 2509 Lighting Restoration in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Qwen Image Edit 2509 Lighting Restoration**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/qwen-image-edit-2509-lora-gallery/lighting-restoration",
    "input": {
      "image_urls": [
        "<image_urls>"
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Qwen Image Edit 2509 Lighting Restoration on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Qwen Image Edit 2509 Lighting Restoration tools and prices

- [Qwen Image Edit 2509 Lora Gallery · Lighting Restoration](https://spiral.ai/tools/fal/fal-ai/qwen-image-edit-2509-lora-gallery/lighting-restoration) (fal): Up to $0.0455 per run at the default inputs. $0.0455 per unit of `num_images`.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | — | The size of the generated image. If not provided, the size of the final input image will be used. |
| guidance_scale | 0 to 20 | 1 | The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt. |
| num_inference_steps | 2 to 50 | 6 | The number of inference steps to perform. |
| acceleration | none, regular | regular | Acceleration level for image generation. 'regular' balances speed and quality. |
| negative_prompt |  |  | The negative prompt for the generation |
| seed |  | — | Random seed for reproducibility. Same seed with same prompt will produce same result. |

## What can you do with Qwen Image Edit 2509 Lighting Restoration in opencode?

Prepare photos for your project's portrait or product pages with softer lighting. Have the agent save comparison copies for review before replacing existing assets.

### Portrait lighting cleanup

Soften distracting facial shadows in a portrait, then compare the result with the original.

### Product photo cleanup

Reduce harsh lighting and bright spots in product photos selected for a listing.

### Photo collection consistency

Process photos with uneven illumination toward a softer lighting baseline, reviewing each result.

### Preparation for relighting

Remove existing lighting effects before a separate creative relighting pass.

### Lighting training pairs

Pair each lit original with its lighting cleanup result for a lighting LoRA dataset.

### Editorial photo review

Create a softer lighting alternative so an editor can decide whether the original shadows help or distract.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Qwen Image Edit 2509 Lighting Restoration in other agents

- [Amp](https://spiral.ai/integrations/amp/qwen-image-edit-2509-lighting-restoration)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/qwen-image-edit-2509-lighting-restoration)
- [Claude](https://spiral.ai/integrations/claude-desktop/qwen-image-edit-2509-lighting-restoration)
- [Claude Code](https://spiral.ai/integrations/claude-code/qwen-image-edit-2509-lighting-restoration)
- [Cline](https://spiral.ai/integrations/cline/qwen-image-edit-2509-lighting-restoration)
- [Codex](https://spiral.ai/integrations/codex/qwen-image-edit-2509-lighting-restoration)
- [Cursor](https://spiral.ai/integrations/cursor/qwen-image-edit-2509-lighting-restoration)
- [Devin](https://spiral.ai/integrations/devin/qwen-image-edit-2509-lighting-restoration)
- [dots](https://spiral.ai/integrations/dots/qwen-image-edit-2509-lighting-restoration)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/qwen-image-edit-2509-lighting-restoration)
- [Gemini](https://spiral.ai/integrations/gemini/qwen-image-edit-2509-lighting-restoration)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/qwen-image-edit-2509-lighting-restoration)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/qwen-image-edit-2509-lighting-restoration)
- [goose](https://spiral.ai/integrations/goose/qwen-image-edit-2509-lighting-restoration)
- [Grok](https://spiral.ai/integrations/grok/qwen-image-edit-2509-lighting-restoration)
- [Grok Build](https://spiral.ai/integrations/grok-build/qwen-image-edit-2509-lighting-restoration)
- [Hermes](https://spiral.ai/integrations/hermes/qwen-image-edit-2509-lighting-restoration)
- [Instinct](https://spiral.ai/integrations/instinct/qwen-image-edit-2509-lighting-restoration)
- [Manus](https://spiral.ai/integrations/manus/qwen-image-edit-2509-lighting-restoration)
- [Muse](https://spiral.ai/integrations/muse/qwen-image-edit-2509-lighting-restoration)
- [Muse Code](https://spiral.ai/integrations/muse-code/qwen-image-edit-2509-lighting-restoration)
- [n8n](https://spiral.ai/integrations/n8n/qwen-image-edit-2509-lighting-restoration)
- [Notion](https://spiral.ai/integrations/notion/qwen-image-edit-2509-lighting-restoration)
- [OpenClaw](https://spiral.ai/integrations/openclaw/qwen-image-edit-2509-lighting-restoration)
- [Perplexity](https://spiral.ai/integrations/perplexity/qwen-image-edit-2509-lighting-restoration)
- [Raycast](https://spiral.ai/integrations/raycast/qwen-image-edit-2509-lighting-restoration)
- [VS Code](https://spiral.ai/integrations/vscode/qwen-image-edit-2509-lighting-restoration)
- [Windsurf](https://spiral.ai/integrations/windsurf/qwen-image-edit-2509-lighting-restoration)
- [Zapier](https://spiral.ai/integrations/zapier/qwen-image-edit-2509-lighting-restoration)

## More opencode guides

- [Qwen Image Edit 2509 Integrate Product](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-integrate-product)
- [Qwen Image Edit 2509 LoRA](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-lora)
- [Qwen Image Edit 2509 Group Photo](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-group-photo)
- [Qwen Image Edit 2509 Multiple Angles](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-multiple-angles)
- [Qwen Image Edit 2509 Face to Full Portrait](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-face-to-full-portrait)
- [Qwen Image Edit 2509 Next Scene](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-next-scene)

## Questions about Qwen Image Edit 2509 Lighting Restoration in opencode

**Can opencode use Qwen Image Edit 2509 Lighting Restoration?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Qwen Image Edit 2509 Lighting Restoration like any built-in tool.

**How much does Qwen Image Edit 2509 Lighting Restoration cost in opencode?**

Up to $0.0455 per run at the default inputs. $0.0455 per unit of `num_images`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use Qwen Image Edit 2509 Lighting Restoration in opencode?**

No. Spiral runs Qwen Image Edit 2509 Lighting Restoration on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Qwen Image Edit 2509 Lighting Restoration in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Qwen Image Edit 2509 Lighting Restoration runs?**

Qwen Image Edit 2509 Lighting Restoration runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What does Qwen Image Edit 2509 Lighting Restoration do?**

It removes harsh shadows and bright spots from an existing photo and replaces them with softer, more even illumination.

**Which photos are the best fit?**

Portraits and product photos are the documented best fits. Start with images where uneven lighting is the problem you want to fix.

**How should I prompt Qwen Image Edit 2509 Lighting Restoration?**

It uses a fixed restoration prompt. Tell your agent which photo to process and how to review the result; a detailed creative lighting prompt is unnecessary.

**Why might the result look flatter than the original?**

Removing directional lighting can also remove lighting you liked. Compare both versions before choosing the edited photo as a finished image.

**Can it help prepare a lighting training dataset?**

Yes. The creator describes pairing a lit original with a version whose lighting has been removed, providing examples for training a lighting LoRA.

