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

opencode · Image

How to Use fal Blur in opencode

fal Blur softens existing images with Gaussian filtering or simplifies their texture with Kuwahara filtering. Choose Gaussian for a smooth blur and Kuwahara when you want to retain outlines while reducing detail.

Prompts to try with fal Blur in opencode

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

Use fal Blur on the homepage background photo in this project. Compare Gaussian treatments with radius 7 and sigma values 1, 2, and 3, saving each separately.

fal Bluropencode
Try asking
  • Use fal Blur on the landscape image in the project's assets. Compare Kuwahara radii 3, 5, and 7 and flag any distracting rectangular patches.

  • Use fal Blur to make a Gaussian-treated copy of the slide background in this project, with radius 5 and sigma 1. Keep the original and add slide text after filtering.

  • Use fal Blur on the project's portrait photo with Kuwahara radii 3 and 5. Save both treatments and compare the eyes, hair, and facial outlines.

  • Use fal Blur to compare Gaussian and Kuwahara treatments of the same project image at radius 5. Set Gaussian sigma to 1 and create a review page showing both beside the original.

How to set up fal Blur 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 fal Blur

    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/post-processing/blur",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/web-examples/post-process/postpro-input.jpg"
        }
      }'

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

fal Blur providers and prices

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

falImage
Post Processing Blur
fal-ai/post-processing/blur

Settings you can ask for

fal Blur works from your image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Blur typegaussian or kuwaharagaussian

Type of blur to apply

Blur radius0 to 313

Blur radius

Blur sigma0.1 to 101

Sigma for Gaussian blur

Every API field of Post Processing Blur is on its tool page: open its card above.

What can you do with fal Blur in opencode?

Create softened background assets and simplified photo treatments from images in your project. Have the agent save separate results and compare detail before updating the design.

Backgrounds for presentation slides

Try Gaussian filtering on a photograph before placing slide text over it. Compare a few strengths to find enough softness without losing the scene.

Illustrated landscape treatments

Use Kuwahara filtering on a landscape photo to simplify foliage and other fine texture. Review the result for distracting patches.

Light noise reduction

Try a mild Gaussian treatment on an image with Gaussian noise. Keep the original beside the result to judge whether the lost detail is acceptable.

Website background assets

Create softened copies of existing photography for website backgrounds. Add navigation and other text after filtering so their edges stay sharp.

Simplified editorial portraits

Compare Kuwahara treatments for a portrait with less skin and clothing texture. Inspect eyes, hair, and facial outlines before selecting one.

Image treatment comparisons

Produce Gaussian and Kuwahara treatments from the same source photo for a design review. Compare smooth softness against texture simplification.

Questions about fal Blur in opencode

Can opencode use fal Blur?

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

How much does fal Blur cost in opencode?

$0.0013 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 fal Blur in opencode?

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

How long does it take to set up fal Blur in opencode?

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

Does opencode wait while fal Blur runs?

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

When should I choose Gaussian or Kuwahara blur?

Choose Gaussian for a smooth blur that also softens edges. Try Kuwahara when you want simpler texture with more of the outlines retained.

What does sigma change?

Sigma controls the spread of Gaussian filtering. Compare a few values on the same original image, keeping the radius fixed so you can judge the difference.

Will blur preserve small details?

Gaussian blur softens edges, and larger Kuwahara filtering windows can remove small details. Check lettering, hair, and thin lines before choosing the final result.

Why can Kuwahara blur look blocky?

Conventional Kuwahara filtering can create rectangular areas of similar color. If those patches distract from the image, compare a smaller radius or switch to Gaussian.

Can Gaussian blur reduce image noise?

It can reduce Gaussian noise, but it also softens edges. Start with a light treatment and compare the noise reduction against the detail you lose.

Get started

Start using fal Blur 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