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

Gemini · Image

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.

Prompts to try with fal Sharpen in Gemini

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

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.

fal SharpenGemini
Try asking
  • 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:

    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.

    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.

    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.

fal Sharpen providers and prices

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

falImage
Post Processing Sharpen
fal-ai/post-processing/sharpen

Settings you can ask for

fal Sharpen works from your image URL. Ask Gemini for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Sharpen modebasic, smart, or casbasic

Type of sharpening to apply

Sharpen radius1 to 151

Sharpen radius (for basic mode)

Sharpen alpha0.1 to 51

Sharpen strength (for basic mode)

Noise radius1 to 257

Noise radius for smart sharpen

Preserve edges0 to 10.75

Edge preservation factor

Smart sharpen strength0 to 255

Smart sharpen strength

Smart sharpen ratio0 to 10.5

Smart sharpen blend ratio

Cas amount0 to 10.8

CAS sharpening amount

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

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.

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.

Get started

Start using fal Sharpen in Gemini

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini:

Set up Gemini

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options