[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [fal Sharpen](https://spiral.ai/integrations/muse-code/fal-sharpen)

# How to Use fal Sharpen in Muse Code

fal Sharpen adds definition to existing images through basic unsharp masking, smart sharpening with edge preservation, or contrast adaptive sharpening. Use it for a finishing pass on soft photos and renders, with a visual check for halos.

|  |  |
| --- | --- |
| Model | fal Sharpen |
| Available through | fal |
| Category | Image |
| Price | $0.0013 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with fal Sharpen in Muse Code

- Use fal Sharpen to make a restrained basic sharpening candidate for the product photos in public/products. Save separate copies and build a comparison page with the originals.
- Use fal Sharpen on the portrait assets in this project with smart sharpening and edge preservation. Prepare a review sheet so I can inspect facial outlines before choosing replacements.
- Use fal Sharpen to compare CAS amounts of 0.3 and 0.6 on the game's promotional screenshots. Show both results beside each original.
- Use fal Sharpen on the architectural render in assets with basic sharpening at radius 1 and radius 2, keeping strength the same. Build a comparison focused on window frames and rooflines.
- Use fal Sharpen to create basic, smart, and CAS treatments of the article's hero photo. Add a local review page with views at 100% zoom.

## How to set up fal Sharpen in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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 fal Sharpen**: 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/post-processing/sharpen",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/web-examples/post-process/postpro-input.jpg"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds fal Sharpen on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## fal Sharpen tools and prices

- [Post Processing Sharpen](https://spiral.ai/tools/fal/fal-ai/post-processing/sharpen) (fal): $0.0013 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sharpen_mode | basic, smart, cas | basic | Type of sharpening to apply |
| sharpen_radius | 1 to 15 | 1 | Sharpen radius (for basic mode) |
| sharpen_alpha | 0.1 to 5 | 1 | Sharpen strength (for basic mode) |
| noise_radius | 1 to 25 | 7 | Noise radius for smart sharpen |
| preserve_edges | 0 to 1 | 0.75 | Edge preservation factor |
| smart_sharpen_strength | 0 to 25 | 5 | Smart sharpen strength |

## What can you do with fal Sharpen in Muse Code?

Prepare sharpening candidates for the images in your project and compare them before updating assets. The agent can organize basic, smart, and CAS treatments into a review page.

### Product photo finishing

Test a restrained basic sharpening pass on product photos. Compare packaging edges and surface texture with the original before choosing the result.

### Portrait finishing

Try smart sharpening with edge preservation on a mildly soft portrait. Review facial outlines and keep the original available for comparison.

### Game screenshot cleanup

Test CAS on screenshots softened by temporal anti-aliasing. Compare environmental detail and object edges before accepting the pass.

### Architectural render review

Compare basic sharpening and CAS on an existing architectural render. Check window frames, rooflines, and other contrasting edges for halos.

### Editorial photo preparation

Prepare a restrained sharpening candidate for an article photo. Inspect the result at 100% zoom before choosing it for publication.

### Sharpening comparisons

Create basic, smart, and CAS treatments from the same original image. Compare them side by side to choose the treatment that suits the subject.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## fal Sharpen in other agents

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

## More Muse Code guides

- [fal Scene Composition](https://spiral.ai/integrations/muse-code/fal-scene-composition)
- [fal Style Transfer](https://spiral.ai/integrations/muse-code/fal-style-transfer)
- [fal Retouch](https://spiral.ai/integrations/muse-code/fal-retouch)
- [fal Text Removal](https://spiral.ai/integrations/muse-code/fal-text-removal)
- [fal Object Removal](https://spiral.ai/integrations/muse-code/fal-object-removal)
- [fal Vignette](https://spiral.ai/integrations/muse-code/fal-vignette)

## Questions about fal Sharpen in Muse Code

**Can Muse Code use fal Sharpen?**

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

**How much does fal Sharpen cost in Muse Code?**

$0.0013 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a fal account to use fal Sharpen in Muse Code?**

No. Spiral runs fal Sharpen 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 Sharpen in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while fal Sharpen runs?**

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

**What is fal Sharpen useful for?**

Use it to add definition to an existing photo or render. Basic unsharp masking emphasizes edge contrast, while smart sharpening adds edge preservation and CAS adapts sharpening across the image.

**Can fal Sharpen rescue an out-of-focus photo?**

Treat it as a finishing tool for mild softness. Sharpening can improve apparent definition, but a severely blurred photo needs more than a sharpening pass.

**How should I choose a sharpening radius?**

Start small when fine detail matters, then compare the result with the original. Larger radii affect broader areas, so inspect object outlines before increasing the radius.

**How do I avoid an over-sharpened look?**

Compare a restrained pass with the original and inspect high-contrast edges for halos. Reduce the sharpening if outlines develop bright or dark fringes.

**When is CAS worth trying?**

Try CAS on game captures and renders with uneven softness. The algorithm adjusts sharpening per pixel and was designed to address softness from temporal anti-aliasing.

