[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Photo Restoration](https://spiral.ai/integrations/muse-code/photo-restoration)

# How to Use Photo Restoration in Muse Code

Photo Restoration repairs imperfections in old or damaged photographs. It also adds color while aiming to retain the original character and image details.

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

## Prompts to try with Photo Restoration in Muse Code

- Use Photo Restoration on the scanned portrait in public/photos, save a separate copy, and add an original-versus-restored comparison to the gallery.
- Use Photo Restoration on one wedding scan in this project and build a review page before processing the remaining photographs.
- Use Photo Restoration for the historical street photograph in our assets and place the result beside the original in the exhibition draft.
- Use Photo Restoration on the class photograph in this repository and add a zoomable comparison so reviewers can inspect faces.
- Use Photo Restoration on the selected archive scans and create a manifest linking each original to its edited copy.

## How to set up Photo Restoration 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 Photo Restoration**: 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/image-editing/photo-restoration",
    "input": {
      "image_url": "https://v3.fal.media/files/zebra/ProUb4C1PYWpyGe7BXd0n_d575ba7693584c0ddf733f77dcdb8963.jpg"
    }
  }'
```

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

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

## Photo Restoration tools and prices

- [Image Editing Photo Restoration](https://spiral.ai/tools/fal/fal-ai/image-editing/photo-restoration) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 0 to 20 | 3.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| num_inference_steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| output_format | jpeg, png | jpeg | The format of the generated image. |
| aspect_ratio | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 | — | The aspect ratio of the generated image. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |

## What can you do with Photo Restoration in Muse Code?

Turn a project's old photo assets into a restoration review gallery with Photo Restoration. Ask the coding agent to retain the scans, organize edited copies, and build a comparison view.

### Genealogy album copies

Try restoring scanned ancestor portraits for a genealogy album. Keep each edited image beside its original scan.

### Anniversary photo books

Prepare restoration candidates from old wedding photographs, then review faces and clothing before placing them in a photo book.

### Local history displays

Create restored copies of old neighborhood photographs for an exhibition draft. Have a reviewer compare buildings and other recognizable details.

### Memorial slideshows

Restore selected older portraits for a memorial slideshow, with a relative reviewing each result before inclusion.

### School reunion galleries

Try restoration on scanned class photographs and compare the results with the originals before assembling a reunion gallery.

### Colorized history illustrations

Explore colorized treatments of old photographs for a history presentation. Label the edited images and retain the originals for comparison.

## Overview

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

## Photo Restoration in other agents

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

## More Muse Code guides

- [Phota Text to Image](https://spiral.ai/integrations/muse-code/phota-text-to-image)
- [Photo Restoration fal](https://spiral.ai/integrations/muse-code/photo-restoration-fal)
- [Phota Image Editing](https://spiral.ai/integrations/muse-code/phota-image-editing)
- [Photography Effects](https://spiral.ai/integrations/muse-code/photography-effects)
- [Phota Enhance](https://spiral.ai/integrations/muse-code/phota-enhance)
- [Pixelcut Background Remover](https://spiral.ai/integrations/muse-code/pixelcut-background-remover)

## Questions about Photo Restoration in Muse Code

**Can Muse Code use Photo Restoration?**

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

**How much does Photo Restoration cost in Muse Code?**

$0.052 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 Photo Restoration in Muse Code?**

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

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

**Does Muse Code wait while Photo Restoration runs?**

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

**What is Photo Restoration good at?**

Its stated purpose is removing imperfections from old or damaged photographs. Try it on scanned portraits, wedding photos, or historical photographs, then compare the result with the scan.

**Can Photo Restoration add color?**

Yes. Adding color is part of its stated restoration capabilities; review the result against any known references before using it in a historical project.

**Will Photo Restoration preserve the original appearance?**

Preserving the original character and details is a stated goal. Compare faces, clothing, and background objects before accepting an edit.

**How should I prompt an agent to use Photo Restoration?**

Identify the photograph and tell the agent how to organize and review the result. The published restoration schema has no text prompt parameter, so treat your instructions as directions for the agent's workflow.

**What should I check before keeping a restored photo?**

Compare the original and restored images side by side, concentrating on details you recognize. Keep the original scan and save the restoration separately.

