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

opencode · Image

How to Use Qwen Image Edit 2509 LoRA in opencode

Use Qwen Image Edit 2509 LoRA to revise product photos, portraits, and text inside images. Unlike Qwen Image Edit 2509, it supports loading custom LoRA adapters for specialized edits.

Prompts to try with Qwen Image Edit 2509 LoRA in opencode

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

Use Qwen Image Edit 2509 LoRA on the product photo in public/images. Place the product on a sunlit kitchen counter, preserving its shape and label. Save the result separately for review.

Qwen Image Edit 2509 LoRAopencode
Try asking
  • Use Qwen Image Edit 2509 LoRA to replace 'Coming soon' with 'Now available' in the project's launch poster. Preserve the illustration and text placement, then check the spelling.

  • Use Qwen Image Edit 2509 LoRA to turn the project's founder portrait into a watercolor illustration. Preserve recognizable facial features and save a comparison with the original.

  • Use Qwen Image Edit 2509 LoRA with the portrait and pose keypoint image in the assets directory. Apply the reference pose while preserving the person's face and clothing.

  • Use Qwen Image Edit 2509 LoRA to revise the project's promotional image at 1280 by 720 pixels. Change the headline lettering to brushed copper while keeping its wording and the product recognizable.

How to set up Qwen Image Edit 2509 LoRA 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 LoRA

    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",
        "input": {
          "prompt": "Close shot of a woman standing in next to this car on this highway",
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

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

Qwen Image Edit 2509 LoRA providers and prices

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

falImage
Qwen Image Edit 2509 Lora
fal-ai/qwen-image-edit-2509-lora

Settings you can ask for

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

SettingAllowed valuesDefaultDescription
Number of inference steps2 to 5028

The number of inference steps to perform.

Seeda whole number

The same seed and the same prompt given to the same version of the model

will output the same image every time.

Guidance scale0 to 204

The CFG (Classifier Free Guidance) scale is a measure of how close you want

the model to stick to your prompt when looking for a related image to show you.

Number of images1 to 41

The number of images to generate.

Output formatjpeg or pngpng

The format of the generated image.

Negative promptwhat to leave out, in words

The negative prompt for the generation

Accelerationnone or regularregular

Acceleration level for image generation. Options: 'none', 'regular'. Higher acceleration increases speed. 'regular' balances speed and quality.

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

What can you do with Qwen Image Edit 2509 LoRA in opencode?

Turn existing project artwork into revised product scenes, portraits, and promotional images with Qwen Image Edit 2509 LoRA. A coding agent can use the project's assets and copy to prepare edits and check the results against the originals.

Product campaign images

Use Qwen Image Edit 2509 LoRA to place a photographed product in a new setting. Check its shape, label, and identifying details against the reference.

Portrait style studies

Use Qwen Image Edit 2509 LoRA to explore painted or illustrated treatments of an existing portrait while retaining the person's recognizable features.

Poster copy revisions

Use Qwen Image Edit 2509 LoRA to replace Chinese or English wording in an existing poster, then proofread the rendered text.

Lettering treatments

Use Qwen Image Edit 2509 LoRA to explore a different font, color, or material for lettering already present in an image.

Pose studies from references

Use Qwen Image Edit 2509 LoRA with a portrait and a keypoint map to explore a new pose. Review facial identity and body proportions.

Composite portraits

Use Qwen Image Edit 2509 LoRA to bring people from separate reference images into one scene. Compare each face with its source image.

Questions about Qwen Image Edit 2509 LoRA in opencode

Can opencode use Qwen Image Edit 2509 LoRA?

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

How much does Qwen Image Edit 2509 LoRA 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 LoRA in opencode?

No. Spiral runs Qwen Image Edit 2509 LoRA 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 LoRA in opencode?

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

Does opencode wait while Qwen Image Edit 2509 LoRA runs?

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

What is Qwen Image Edit 2509 LoRA good at?

It suits edits where recognizable faces, products, or existing lettering matter. Use it for product scenes, portrait treatments, and revisions to text inside an image.

How many reference images should I use?

Qwen recommends one to three for the best results. Give each reference a clear job, such as the person, the product, or the setting.

Can it edit Chinese and English lettering?

Yes, Qwen Image Edit supports adding, removing, and replacing text in both languages. Specify the exact replacement wording and proofread the result.

Will faces and products stay exactly the same?

Treat preservation as something to check. Qwen describes further reductions in image drift and improvements in character consistency in 2511, so compare 2509 results with the original references.

Can I request a specific output size?

Yes, custom width and height are supported. The documentation gives 1280 by 720 pixels as an example.

Get started

Start using Qwen Image Edit 2509 LoRA 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