Ai photo restoration

From awesome-genmedia/skills · View interactive version

Ai photo restoration is an AI agent skill from the GitHub repository awesome-genmedia/skills. Restore old and damaged photos using each::sense AI. Repair scratches, tears, fading, water damage, and age deterioration. Reconstruct missing details, sharpen blurry areas, and bring damaged photographs back to life. Use for: photo restoration, old photo repair, damaged photo fix, vintage photo enh

How to use this skill

Skill file

AI Photo Restoration

Restore old and damaged photographs to their former quality using each::sense — the intelligent AI agent that automatically selects the best model for your request.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

Using curl

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Restore this old damaged photograph: remove scratches and tears, fix faded areas, sharpen blurry details, reconstruct any missing portions naturally, maintain the original character and era of the photo while making it clean and clear"},
              {"type": "image_url", "image_url": {"url": "https://example.com/old-damaged-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Using Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_EACHLABS_API_KEY",
    base_url="https://eachsense-agent.core.eachlabs.run/v1"
)

response = client.chat.completions.create(
    model="eachsense/beta",
    messages=[{
        "role": "user",
        "content": "Restore this old damaged photograph: remove scratches and tears, fix faded areas, sharpen blurry details, reconstruct any missing portions naturally, maintain the original character and era of the photo while making it clean and clear"
    }],
    # Images are included in the message content array above
)

print(response.choices[0].message.content)

Streaming

Set "stream": true for real-time SSE responses, or "stream": false for complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.

Tips for Photo Restoration

Examples

Scratch and Tear Repair

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Restore this vintage family portrait: remove the deep scratches across the center, repair the torn corner in the upper right, clean up the yellowed and stained areas, sharpen the faces while keeping the natural film grain, preserve the warm vintage tone"},
              {"type": "image_url", "image_url": {"url": "https://example.com/scratched-family-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Faded Photo Enhancement

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Restore this severely faded photograph: bring back the lost contrast and detail, recover the shadow areas that have become flat grey, enhance the highlights without blowing them out, reconstruct facial features that have faded, maintain natural photographic quality"},
              {"type": "image_url", "image_url": {"url": "https://example.com/faded-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Water Damage Repair

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": [
              {"type": "text", "text": "Repair this water-damaged photograph: remove the water stains and discoloration, fix the warped and bubbled areas, reconstruct the portions where the emulsion has been washed away, restore natural skin tones and background details"},
              {"type": "image_url", "image_url": {"url": "https://example.com/water-damaged-photo.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Workflow: Photo Restoration Pipeline

  1. Scan the original — Digitize the physical photo at the highest resolution possible.
  2. Assess damage — Identify scratches, tears, fading, stains, and missing areas.
  3. Restore structural damage — Remove scratches, repair tears, and clean stains.
  4. Enhance clarity — Sharpen details, restore contrast, and recover faded areas.
  5. Reconstruct missing parts — Use AI to fill in damaged or missing sections.
  6. Colorize (optional) — Add color to black and white restored photos.
  7. Final review — Compare with original to ensure faithful restoration.

Related Skills

Related Models

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.