计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
ai-beauty-filter【效率与协作】Apply AI beauty enhancements to face photos using each::sense AI. Smooth skin, whiten teeth, remove blemishes, brighten eyes, enhance jawline, and apply natural-looking retouching while preserving identity. Use for: portrait retouching, headshot enhancement, social media photos, dating profile photos, professional headshots, selfie enhancement. Trigg…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Apply professional-grade beauty enhancements to face photos 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 portrait with natural beauty retouching. Smooth the skin while keeping texture, brighten the eyes, whiten teeth slightly, and even out the skin tone. Keep it looking natural, not overly filtered."},
{"type": "image_url", "image_url": {"url": "https://example.com/portrait.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 portrait with natural beauty retouching. Smooth the skin while keeping texture, brighten the eyes, whiten teeth slightly, and even out the skin tone. Keep it looking natural, not overly filtered."
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
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": "Apply beauty retouching to this photo: smooth skin, remove blemishes, brighten eyes, keep it natural and realistic"},
{"type": "image_url", "image_url": {"url": "https://example.com/selfie.jpg"}}
]
}
],
"stream": false
}'
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
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.
| Enhancement | Description | Typical Use |
|---|---|---|
| Skin Smoothing | Reduces pores and texture while keeping natural look | All portraits |
| Blemish Removal | Removes acne, scars, dark spots | Headshots, social media |
| Teeth Whitening | Brightens teeth naturally | Smiling portraits |
| Eye Brightening | Enhances iris color, adds catchlight | All portraits |
| Skin Tone Evening | Reduces redness, evens complexion | Professional headshots |
| Jawline Enhancement | Subtle contouring of the jawline | Profile photos |
| Under-eye Fix | Reduces dark circles and bags | Tired-looking photos |
| Hair Enhancement | Adds shine and volume appearance | Glamour shots |
Use descriptors like "subtle," "natural," "moderate," or "glamour" to control intensity:
Apply [level] beauty enhancement to this portrait: [specific enhancements]. Keep the result [natural/polished].
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": "Retouch this professional headshot. Smooth skin lightly while preserving pore texture, remove any blemishes, reduce dark circles under the eyes, even out skin tone, and add a subtle warmth to the overall color. Corporate headshot quality."},
{"type": "image_url", "image_url": {"url": "https://example.com/headshot-raw.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 selfie for Instagram. Brighten the overall image, smooth skin naturally, make eyes pop with slight brightening, whiten teeth a touch, and give the photo a warm golden-hour glow. Should look effortlessly good, not obviously edited."},
{"type": "image_url", "image_url": {"url": "https://example.com/casual-selfie.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": "Apply high-end magazine beauty retouching to this portrait. Flawless skin with very smooth texture, bright vivid eyes, perfectly white teeth, defined cheekbones with subtle contouring, and luminous skin glow. Vogue editorial style."},
{"type": "image_url", "image_url": {"url": "https://example.com/studio-portrait.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": "Apply very subtle retouching to this photo. Just remove the few visible blemishes, slightly reduce the redness around the nose, and brighten the under-eye area. Everything else should stay exactly as-is. The person should not be able to tell the photo was edited."},
{"type": "image_url", "image_url": {"url": "https://example.com/natural-photo.jpg"}}
]
}
],
"stream": false
}'
# Step 1: Start with basic skin corrections
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": "Remove blemishes and even out skin tone in this portrait. Do not smooth the skin yet, just fix spots and discoloration. Keep everything else untouched."},
{"type": "image_url", "image_url": {"url": "https://example.com/raw-portrait.jpg"}}
]
}
],
"stream": false
}'
# Step 2: Refine with beauty enhancements
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": "Now apply natural beauty enhancement to this portrait: light skin smoothing with texture preserved, brighten the eyes, whiten teeth slightly, reduce under-eye shadows, and add a gentle warm glow. Professional but natural result."},
{"type": "image_url", "image_url": {"url": "https://example.com/corrected-portrait.jpg"}}
]
}
],
"stream": false
}'