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

Gemini CLI · Image

How to Use Photo Restoration fal in Gemini CLI

Photo Restoration repairs old or damaged photographs by correcting colors, removing scratches, and improving resolution. Use it to prepare scanned portraits, album photos, and historical images for review and reuse.

Prompts to try with Photo Restoration fal in Gemini CLI

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

Use Photo Restoration on the scratched scans in public/archive. Save restored copies separately and build a page showing each original beside its result.

Photo Restoration falGemini CLI
Try asking
  • Use Photo Restoration to correct faded colors in the storefront photos under assets/history. Create a review gallery before replacing any published images.

  • Use Photo Restoration on one low-resolution portrait in this project's genealogy collection. Show the original and result at matching display sizes for inspection.

  • Use Photo Restoration on the damaged wedding scans in assets/slideshow. Save the results in a separate directory and add them to a draft slideshow for review.

  • Use Photo Restoration on the scanned workshop photographs selected for our company history page. Record the returned dimensions and flag images that need review before publication.

How to set up Photo Restoration fal in Gemini CLI

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

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI 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 Photo Restoration fal

    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-apps-v2/photo-restoration",
        "input": {
          "image_url": "https://v3.fal.media/files/panda/BcOIyOJ5Z1-GOjDi_GmsX_50e353c588c74435882f8f68989b4af5.png"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds Photo Restoration fal on Spiral, shows the price and runs it.

Photo Restoration fal providers and prices

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

falImage
Photo Restoration
fal-ai/image-apps-v2/photo-restoration

Settings you can ask for

Photo Restoration fal works from your image URL. Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Enhance resolutionon or offon
Fix colorson or offon
Remove scratcheson or offon

Every API field of Photo Restoration is on its tool page: open its card above.

What can you do with Photo Restoration fal in Gemini CLI?

Prepare restored photographs for a project's history pages, galleries, or digital exhibits. Have the agent save separate copies and build a comparison view for review.

Scanned album repairs

Repair scratches and faded colors in scanned album photos, then review each result beside its original.

Genealogy portraits

Prepare restored copies of ancestor photographs for a genealogy website while retaining the untouched scans.

Local history exhibits

Restore damaged photographs of streets, buildings, and community events for an exhibit's editorial review.

Anniversary slideshows

Repair older wedding and celebration photographs before adding approved copies to an anniversary slideshow.

Memoir illustrations

Improve faded or scratched photographs selected for a memoir, keeping an original-and-restored pair for each illustration.

Business archive photographs

Prepare restored copies of old storefront, staff, and workshop photographs for a company history page.

Questions about Photo Restoration fal in Gemini CLI

Can Gemini CLI use Photo Restoration fal?

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

How much does Photo Restoration fal cost in Gemini CLI?

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

Do I need a fal account to use Photo Restoration fal in Gemini CLI?

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

How long does it take to set up Photo Restoration fal in Gemini CLI?

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

Does Gemini CLI wait while Photo Restoration fal runs?

Photo Restoration fal runs in the background. Gemini CLI starts the run, checks on it and gives you the image when it's ready.

What is Photo Restoration good for?

Photo Restoration targets old or damaged photographs with color problems, scratches, or resolution that needs improvement. Start with scanned portraits, album photographs, or historical photos that need those repairs.

Does Photo Restoration produce 4K images?

The documentation describes 4K output. Check the returned image's actual dimensions before choosing a print size.

How should I describe the restoration I want?

Tell your agent which visible problem matters: scratches, faded colors, or low resolution. Ask for a comparison with the original so you can judge whether the repair suits the photograph.

How should I review a restored portrait?

Compare the original and restored image at the same zoom. Inspect eyes, teeth, hairlines, clothing details, and any writing before approving the result.

Should I replace my original scan with the restored image?

Keep the original scan and save the restoration as a separate copy. For historical collections, label the edited image and record which repairs you requested.

Get started

Start using Photo Restoration fal in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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