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-restorationRestore 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 enhancement, archival restoration. Triggers: photo restoration…
Independent GitHub snapshot · Automated classification · Original documentation governs
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.
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": "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
}'
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)
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.
image_urls — restoration requires the original damaged 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 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
}'
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
}'
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
}'