界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

ai-photo-enhancer

ai-photo-enhancer

【效率与协作】Enhance photo quality with AI using each::sense AI. Improve sharpness, fix lighting, reduce noise, correct colors, restore old photos, and bring out hidden detail in underexposed or degraded images. Supports batch enhancement and targeted corrections. Use for: photo restoration, noise reduction, color correction, lighting fixes, old photo repair, ima…

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: ai-photo-enhancer description: "Enhance photo quality with AI using each::sense AI. Improve sharpness, fix lighting, reduce noise, correct colors, restore old photos, and bring out hidden detail in underexposed or degraded images. Supports batch enhancement and targeted corrections. Use for: photo restoration, noise reduction, color correction, lighting fixes, old photo repair, image sharpening, HDR enhancement. Triggers: photo enhancer, enhance photo, improve photo, fix photo, photo quality, color correction, noise reduction, sharpen photo, restore photo, photo fixer, image enhancement, ai enhance" allowed-tools: Bash(curl *), WebFetch

AI Photo Enhancer

Improve photo quality, fix lighting, reduce noise, and restore images 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": "Enhance this photo: improve sharpness, fix the underexposed shadows, boost color vibrancy slightly, and reduce noise while preserving natural skin texture."},
              {"type": "image_url", "image_url": {"url": "https://example.com/dark-noisy-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": "Enhance this photo: improve sharpness, fix the underexposed shadows, boost color vibrancy slightly, and reduce noise while preserving natural skin texture."
    }],
    # Images are included in the message content array above
)

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

Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.

Streaming

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

Enhancement Types

EnhancementPrompt KeywordsWhen to Use
Sharpeningsharpen, improve detail, crispSoft or slightly out-of-focus photos
Noise Reductionreduce noise, denoise, remove grainHigh-ISO or low-light photos
Exposure Fixbrighten shadows, fix exposure, recover highlightsUnder/overexposed shots
Color Correctionfix white balance, correct color cast, true-to-lifeWrong white balance, tinted photos
HDR EnhancementHDR effect, dynamic range, balanced exposureHigh-contrast scenes
Old Photo Restorationrestore, fix damage, remove scratchesVintage or damaged prints
Deblurringremove motion blur, sharpen movementMotion-blurred shots

Examples

Fix Low-Light Photo

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": "This photo was taken in low light. Brighten the shadows without blowing out highlights, reduce the visible noise and grain, improve color accuracy, and sharpen the subject. Keep the moody atmosphere but make details visible."},
              {"type": "image_url", "image_url": {"url": "https://example.com/lowlight-event.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Restore Old Family Photo

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 photograph from the 1970s. Remove the yellowing and faded color cast, fix scratches and dust spots, sharpen facial details, and bring the colors back to a natural look. Preserve the original composition."},
              {"type": "image_url", "image_url": {"url": "https://example.com/old-family-1975.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Product 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": "Enhance this product photo for e-commerce: correct the slightly warm color cast to neutral, increase sharpness of the product details, ensure the white background is pure white, and boost contrast slightly for a clean commercial look."},
              {"type": "image_url", "image_url": {"url": "https://example.com/product-raw.jpg"}}
            ]
          }
    ],
    "stream": false
  }'

Batch Enhancement

PHOTOS=(
  "https://example.com/vacation-1.jpg"
  "https://example.com/vacation-2.jpg"
  "https://example.com/vacation-3.jpg"
)

ENHANCEMENT="Enhance this photo: improve sharpness, correct white balance to natural daylight, reduce noise, boost vibrancy slightly. Keep the edit subtle and natural-looking."

for URL in "${PHOTOS[@]}"; do
  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\": \"$ENHANCEMENT\"}],
      \"image_urls\": [\"$URL\"],
      \"stream\": false
    }"
  echo "---"
done

Prompt Tips

  • Be specific about what is wrong: "the shadows are too dark" is better than "fix this photo"
  • Mention what to preserve: "Keep the warm sunset tones" prevents over-correction
  • Specify the intent: "for social media posting" vs. "for large print" changes the approach
  • Avoid conflicting instructions: "make it brighter but keep the moody dark look" is contradictory
  • Use "subtle" or "natural" to prevent aggressive over-processing

Common Problems and Prompts

ProblemSuggested Prompt
Too dark"Brighten the exposure, lift shadows, keep highlights intact"
Too bright/washed out"Reduce exposure, recover blown highlights, deepen shadows"
Yellow/orange cast"Correct the warm color cast to neutral white balance"
Blue/cold cast"Fix the blue color cast, warm up the tones slightly"
Blurry"Sharpen and improve focus, especially on the main subject"
Grainy/noisy"Reduce noise and grain while preserving fine detail"
Faded colors"Restore color vibrancy and saturation to natural levels"
Old/damaged"Restore: remove scratches, fix discoloration, sharpen details"

Related Skills

Related Models

Documentation

我的收藏