[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [fal Sharpen](https://spiral.ai/integrations/gemini/fal-sharpen)

# How to Use fal Sharpen in Gemini

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 Gemini

- Use fal Sharpen to make a restrained basic sharpening pass on this product photo. Show the result beside the original so I can check the packaging edges.
- Use fal Sharpen with smart sharpening and edge preservation on this portrait. Keep the treatment restrained and show me the original for comparison.
- Use fal Sharpen to test contrast adaptive sharpening on this game screenshot at amounts of 0.3 and 0.6. Show both candidates beside the original.
- Use fal Sharpen to compare a small sharpening radius of 1 with a radius of 2 on this landscape, using the same strength. Help me inspect the skyline for halos.
- Use fal Sharpen to create basic, smart, and contrast adaptive treatments of this render. Show the results together and help me choose the least harsh treatment.

## How to set up fal Sharpen in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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: Gemini finds fal Sharpen on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## 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 Gemini?

Compare sharpening treatments for a photo or render in the conversation. The agent can turn a request for more definition into specific trials and help you inspect the results.

### 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 Gemini guides](https://spiral.ai/integrations/gemini)

## 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 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)
- [Muse Code](https://spiral.ai/integrations/muse-code/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 Gemini guides

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

## Questions about fal Sharpen in Gemini

**Can Gemini use fal Sharpen?**

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

**How much does fal Sharpen cost in Gemini?**

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

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

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 Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while fal Sharpen runs?**

fal Sharpen runs in the background. Gemini 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.

