How to Use CodeFormer in Zapier
CodeFormer restores faces in old photos and AI-generated portraits. Its fidelity control lets you favor cleaner facial details or a closer match to the original.
Prompts to try with CodeFormer in Zapier
Copy an example into Zapier, or ask in your own words.
Each morning, use CodeFormer on new old-photo scans in my designated collection with fidelity at 0.7. Keep the originals and prepare a comparison sheet for review.
Every Friday, use CodeFormer on newly approved AI-generated portraits at fidelity 0.3 and 0.7. Present both results beside each source for me to choose.
Each evening, use CodeFormer on new group photographs in my restoration queue with fidelity at 0.7. Prepare face close-ups and flag visible problems around profiles or accessories.
Once a week, use CodeFormer on new prepared 512 by 512 aligned face crops in my portrait collection. Use the prepared-crop mode and save separate restored copies.
Each Monday, use CodeFormer to restore new portraits marked for enlargement with fidelity at 0.7 and twice the original dimensions. Include source and output dimensions in the review report.
How to set up CodeFormer in Zapier
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Zapier 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 Spiral's MCP server
- Add an MCP Client connection
In Zapier open Apps, click Add connection and search for MCP Client. Fill in the form:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Zapier never sees it, and you can remove it under Settings › Connected apps in the console.
- Run a Spiral tool in a Zap
Add an MCP Client step to a Zap and choose the Run Tool action with your Spiral connection. Pick a tool: discover finds the right model for a task, estimate_cost prices it and run runs it. For example, run with:
{ "provider": "fal", "model": "fal-ai/flux/schnell", "input": { "prompt": "a lighthouse at dawn" }, "wait": true } - Run CodeFormer in a workflow step
Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds CodeFormer, prices it and runs it each time the step fires.
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 CodeFormer
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/codeformer", "input": { "image_url": "https://storage.googleapis.com/falserverless/model_tests/codeformer/codeformer_poor_1.jpeg" } }'
Then paste one of the prompts above: Zapier finds CodeFormer on Spiral, shows the price and runs it.
CodeFormer providers and prices
Spiral runs CodeFormer through fal. Open a card for today's price, with every fee included.
Settings you can ask for
CodeFormer works from your image URL. Ask Zapier for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Fidelity | a number | 0.5 | Weight of the fidelity factor. |
| Upscale factor | a number from 1 | 2 | Upscaling factor |
| Aligned | on or off | off | Should faces etc should be aligned. |
| Only center face | on or off | off | Should only center face be restored |
| Face upscale | on or off | on | Should faces be upscaled |
| Seed | a whole number | Random seed for reproducible generation. |
Every API field of CodeFormer is on its tool page: open its card above.
What can you do with CodeFormer in Zapier?
Prepare restored portrait copies whenever new images arrive in a designated collection. Have the agent produce a review batch with originals and settings so you can check appearance before accepting results.
Restore scanned portraits
Use CodeFormer to make restored copies of old portrait scans. Compare a higher fidelity result with the scan before adding it to a photo collection.
Repair generated faces
Run CodeFormer on AI-generated portraits with unsatisfactory facial detail. Compare two fidelity settings and inspect the eyes, mouth, and accessories.
Restore faces within group photos
Use CodeFormer's whole-image processing to restore faces within an old group photograph. Review each person's result and the hair boundaries before keeping the image.
Prepare portrait enlargements
Restore a portrait with CodeFormer and increase the whole-image dimensions for a larger layout. Inspect facial resemblance and blending at the intended display size.
Process aligned face crops
Use CodeFormer on prepared, aligned portrait crops for an image collection. The authors' restoration example uses 512 by 512 face images.
Compare restoration choices
Create CodeFormer results at lower and higher fidelity settings for an editorial review. Keep the source beside both results so an editor can judge resemblance and detail.
More on CodeFormer and Zapier
Overview
CodeFormer in other agents
Questions about CodeFormer in Zapier
Can Zapier use CodeFormer?
Yes. Add Spiral to Zapier as an MCP server, and Zapier can find and run CodeFormer like any built-in tool.
How much does CodeFormer cost in Zapier?
Up to $0.00273 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Zapier plan is separate.
Do I need a fal account to use CodeFormer in Zapier?
No. Spiral runs CodeFormer on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up CodeFormer in Zapier?
About two minutes: add an MCP Client connection, then sign in to Spiral and approve, then run a Spiral tool in a Zap.
Does Zapier wait while CodeFormer runs?
CodeFormer runs in the background. Zapier starts the run, checks on it and gives you the image when it's ready.
What is CodeFormer useful for?
Use it to restore facial detail in old photographs or repair faces in AI-generated portraits. Compare the result with the original before keeping it.
How should I choose the fidelity setting?
Higher values favor resemblance to the original; lower values favor visual quality. Try 0.3 and 0.7 on the same image, then compare facial features before choosing.
Does CodeFormer always preserve the person's appearance?
Identity inconsistencies can remain, especially around unusual accessories. A higher fidelity setting favors resemblance, but review the result yourself.
What image size does CodeFormer produce?
The authors demonstrate cropped face restoration at 512 by 512 pixels. For whole images, the final dimensions follow the upscale factor: doubling a 600 by 400 image produces 1200 by 800.
Where does CodeFormer struggle?
The authors report failures on side-facing portraits and inconsistencies around accessories. Whole-image blending can also damage hair texture at the restored face's boundary.
Start using CodeFormer in Zapier
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Zapier:
set up https://spiral.ai/SKILL.md


