How to Use Photo Restoration in Windsurf
Photo Restoration repairs imperfections in old or damaged photographs. It also adds color while aiming to retain the original character and image details.
Prompts to try with Photo Restoration in Windsurf
Copy an example into Windsurf, or ask in your own words.
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 Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Photo Restoration
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-editing/photo-restoration", "input": { "image_url": "https://v3.fal.media/files/zebra/ProUb4C1PYWpyGe7BXd0n_d575ba7693584c0ddf733f77dcdb8963.jpg" } }'
Then paste one of the prompts above: Windsurf finds Photo Restoration on Spiral, shows the price and runs it.
Photo Restoration providers and prices
Spiral runs Photo Restoration through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Photo Restoration works from your image URL. Ask Windsurf for any of these in your prompt.
| 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. |
| Number of inference steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| Safety tolerance | 1 to 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| Output format | jpeg or 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 and 1 more | The aspect ratio of the generated image. | |
| Seed | a whole number | The same seed and the same prompt given to the same version of the model will output the same image every time. |
Every API field of Image Editing Photo Restoration is on its tool page: open its card above.
What can you do with Photo Restoration in Windsurf?
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.
More on Photo Restoration and Windsurf
Overview
Photo Restoration in other agents
Questions about Photo Restoration in Windsurf
Can Windsurf use Photo Restoration?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Photo Restoration like any built-in tool.
How much does Photo Restoration cost in Windsurf?
$0.052 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need a fal account to use Photo Restoration in Windsurf?
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 Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Photo Restoration runs?
Photo Restoration runs in the background. Windsurf 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.
Start using Photo Restoration in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


