[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Photo Restoration](https://spiral.ai/integrations/grok/photo-restoration)

# How to Use Photo Restoration in Grok

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 Grok

- Use Photo Restoration on this old portrait and show the result beside the original for review.
- Use Photo Restoration on this wedding photograph for an anniversary album draft, and keep the original available for comparison.
- Use Photo Restoration on this damaged photograph and help me compare recognizable details before I keep the edit.
- Use Photo Restoration on this historical photograph, then prepare a caption identifying the result as an edited copy.
- Use Photo Restoration on this reunion photograph and make a checklist for reviewing faces, clothing, and the background.

## How to set up Photo Restoration in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

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

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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: Grok finds Photo Restoration on Spiral, shows the price and runs it.

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

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

Prepare restored photographs for albums, presentations, and personal histories with Photo Restoration. Ask the chat agent to show the original alongside the result and help you organize your review.

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

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

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

## Questions about Photo Restoration in Grok

**Can Grok use Photo Restoration?**

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

**How much does Photo Restoration cost in Grok?**

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

**Do I need a fal account to use Photo Restoration in Grok?**

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

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Photo Restoration runs?**

Photo Restoration runs in the background. Grok 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.

