Spiral gives your agent every tool with one account. Browse the tools →

opencode · Image

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.

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

Copy an example into opencode, or ask in your own words.

Use Qwen Image Edit 2509 Lighting Restoration on the headshot in public/team. Save a separate copy and show a before-and-after comparison.

Qwen Image Edit 2509 Lighting Restorationopencode
Try asking
  • 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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.

    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.

Qwen Image Edit 2509 Lighting Restoration providers and prices

Spiral runs Qwen Image Edit 2509 Lighting Restoration through fal. Open a card for today's price, with every fee included.

falImage
Qwen Image Edit 2509 Lora Gallery · Lighting Restoration
fal-ai/qwen-image-edit-2509-lora-gallery/lighting-restoration

Settings you can ask for

Qwen Image Edit 2509 Lighting Restoration works from your image URLs. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Guidance scale0 to 201

The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt.

Number of inference steps2 to 506

The number of inference steps to perform.

Accelerationnone or regularregular

Acceleration level for image generation. 'regular' balances speed and quality.

Negative promptwhat to leave out, in words

The negative prompt for the generation

Seeda whole number

Random seed for reproducibility. Same seed with same prompt will produce same result.

Output formatpng, jpeg, or webppng

The format of the output image

Number of images1 to 41

Number of images to generate

Every API field of Qwen Image Edit 2509 Lora Gallery · Lighting Restoration is on its tool page: open its card above.

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.

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.

Get started

Start using Qwen Image Edit 2509 Lighting Restoration in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options