executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ai-photo-enhancerEnhance 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 shar…
Independent GitHub snapshot · Automated classification · Original documentation governs
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.
Requires an each::labs API key. Get one at eachlabs.ai.
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
}'
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.
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 | Prompt Keywords | When to Use |
|---|---|---|
| Sharpening | sharpen, improve detail, crisp | Soft or slightly out-of-focus photos |
| Noise Reduction | reduce noise, denoise, remove grain | High-ISO or low-light photos |
| Exposure Fix | brighten shadows, fix exposure, recover highlights | Under/overexposed shots |
| Color Correction | fix white balance, correct color cast, true-to-life | Wrong white balance, tinted photos |
| HDR Enhancement | HDR effect, dynamic range, balanced exposure | High-contrast scenes |
| Old Photo Restoration | restore, fix damage, remove scratches | Vintage or damaged prints |
| Deblurring | remove motion blur, sharpen movement | Motion-blurred shots |
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
}'
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
}'
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
}'
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
| Problem | Suggested 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" |