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

opencode · Image

How to Use Weather Effect in opencode

Weather Effect adds snow, rain, or fog to existing photos while aiming to retain the scene's mood. Use it to explore seasonal campaign images, landscape treatments, and weather concepts for storyboards.

Prompts to try with Weather Effect in opencode

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

Use Weather Effect on the outdoor hero photo in this project to add light snowfall. Ask to keep the main subject clearly visible, save the result separately, and build a comparison with the original.

Weather Effectopencode
Try asking
  • Use Weather Effect to apply gentle rain to the project's street photo. Keep the original asset and add the edited image to a preview page for review.

  • Use Weather Effect on the landscape image in the assets directory to try subtle fog. Ask to retain the scene's mood and show both images side by side.

  • Use Weather Effect to create light and heavy snowfall treatments of the same project photo. Change only the intensity wording and label the two results in a review page.

  • Use Weather Effect to make a fog treatment of our environment reference photo. Save the prompt and seed with the result, and prepare a checklist for reviewing subject visibility and changed details.

How to set up Weather Effect 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 Weather Effect

    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/image-editing/weather-effect",
        "input": {
          "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
        }
      }'

Then paste one of the prompts above: opencode finds Weather Effect on Spiral, shows the price and runs it.

Weather Effect providers and prices

Spiral runs Weather Effect through fal. Open a card for today's price, with every fee included.

falImage
Image Editing Weather Effect
fal-ai/image-editing/weather-effect

Settings you can ask for

Weather Effect works from your image URL and weather effect. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Guidance scale0 to 203.5

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 inference steps1 to 5030

Number of inference steps for sampling.

Safety tolerance1 to 62

The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive.

Output formatjpeg or pngjpeg

The format of the generated image.

Aspect ratio21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 and 1 more

The aspect ratio of the generated image.

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.

Every API field of Image Editing Weather Effect is on its tool page: open its card above.

What can you do with Weather Effect in opencode?

Create weather treatments for the project's existing image assets with Weather Effect. A coding agent can organize the results into a comparison page for visual review.

Winter campaign concepts

Add snowfall to an existing outdoor campaign photo to explore a winter treatment. Review the product and any visible branding before choosing an image.

Rainwear creative

Try a rain treatment on an outdoor apparel photo for an advertising concept. Ask to keep the clothing visible, then inspect its shape and details.

Foggy landscape studies

Apply fog to a landscape photo to explore atmosphere. Compare subtle and dense treatments before selecting a direction.

Storyboard weather concepts

Use a location photo to test rain, snow, or fog for a proposed scene. Present the edited image alongside the original during visual planning.

Game environment references

Create weather treatments from photographed environment references for an art review. Use the results as concepts for the team to assess.

Photography teaching examples

Prepare weather edits of one photo for a lesson on atmosphere. Compare how each treatment affects the visibility of the subject and background.

Questions about Weather Effect in opencode

Can opencode use Weather Effect?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Weather Effect like any built-in tool.

How much does Weather Effect cost in opencode?

$0.052 per image. 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 Weather Effect in opencode?

No. Spiral runs Weather Effect on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Weather Effect in opencode?

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

Does opencode wait while Weather Effect runs?

Weather Effect runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

What weather effects can Weather Effect add?

The official description names snowfall, rain, and fog. Start with one of these effects and specify how strong you want it to appear.

How should I describe a weather edit?

Try a concrete instruction such as “light snowfall, with the subject clearly visible.” State the weather first, then add a short request about what to preserve.

Will Weather Effect keep the original scene's mood?

Maintaining the scene's mood is part of the stated purpose. Still, compare the result with the original and check the lighting, subject, and important details before using it.

How should I compare light and heavy weather?

Use the same original photo and change only the intensity wording between attempts. For example, compare “light snowfall” with “heavy snowfall,” then judge whether the subject remains readable.

Can I reproduce a Weather Effect result?

The documentation says the same seed and prompt return the same image with the same model version. Save the original photo, prompt, seed, and other settings with any result you want to revisit.

Get started

Start using Weather Effect 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