restore_face
Restore blurry, damaged, or AI-generated faces to natural sharpness with adjustable fidelity. Enhances background and upscales images using CodeFormer.
Instructions
Restore blurry, damaged, or AI-generated faces to sharp, natural quality. Uses CodeFormer (NeurIPS 2022, state-of-the-art FID 32.65 on CelebA-Test). Adjustable fidelity — balance between quality enhancement and identity preservation. Also enhances background and upsamples. Stable endpoint — model upgrades automatically as SOTA evolves. 5 sats per image, pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='restore_face'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| imageBase64 | Yes | Base64-encoded image containing faces (PNG, JPEG, WEBP) or data URI | |
| fidelity | No | Fidelity to input: 0.0 = max quality enhancement, 1.0 = max identity preservation (default 0.5) | |
| background_enhance | No | Also enhance the background (default true) | |
| face_upsample | No | Upsample restored faces (default true) | |
| upscale | No | Output upscale factor 1-4 (default 2) |
Implementation Reference
- index.js:39-39 (handler)The tool 'restore_face' is listed as one of the 33+ AI tools in the TOOLS array, but there is no local implementation — it is a remote tool handled by the server at https://sats4ai.com/api/mcp. The actual tool execution logic is on the remote server.
"restore_face", - index.js:14-45 (registration)All tools including 'restore_face' are registered in the TOOLS array of this MCP client configuration package. The package only exports the tool names and config; no handler logic exists locally.
const TOOLS = [ "image", "video", "video_from_image", "text", "vision", "music", "tts", "transcription", "3d", "ocr", "file_convert", "email", "sms", "call", "voice_clone", "image_edit", "pdf_merge", "epub_to_audiobook", "convert_html_to_pdf", "translate_text", "extract_receipt", "ai_call", "remove_background", "upscale_image", "restore_face", "detect_nsfw", "detect_objects", "remove_object", "colorize_image", "deblur_image", ];