算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-makeup-try-on【设计与创意】Apply virtual makeup to face photos using each::sense AI. Try on lipstick, eyeshadow, foundation, blush, eyeliner, mascara, contouring, and complete looks without any physical products. Supports natural, glam, editorial, and avant-garde styles. Use for: beauty e-commerce, social media content, makeup experimentation, bridal look planning, beauty tuto…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Apply virtual makeup to face photos with realistic results 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": "Apply a natural everyday makeup look to this photo. Light foundation evening out skin tone, subtle peach blush on the cheeks, brown eyeshadow with soft blending, thin black eyeliner, natural brown mascara, and a nude pink lipstick. Keep it realistic and wearable."},
{"type": "image_url", "image_url": {"url": "https://example.com/bare-face.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": "Apply a natural everyday makeup look to this photo. Light foundation evening out skin tone, subtle peach blush on the cheeks, brown eyeshadow with soft blending, thin black eyeliner, natural brown mascara, and a nude pink lipstick. Keep it realistic and wearable."
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
You can use a second image as a makeup style reference:
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 the makeup style from the second image onto the face in the first image. Match the lipstick color, eyeshadow, and overall look."},
{"type": "image_url", "image_url": {"url": "https://example.com/my-face.jpg"}},
{"type": "image_url", "image_url": {"url": "https://example.com/makeup-reference.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.
| Category | Products | Key Descriptors |
|---|---|---|
| Base | Foundation, concealer, primer | Matte, dewy, natural, full coverage |
| Cheeks | Blush, bronzer, highlighter, contour | Peach, rose, coral, golden, sculpted |
| Eyes | Eyeshadow, eyeliner, mascara, brow | Smoky, cut crease, winged, natural |
| Lips | Lipstick, gloss, liner | Red, nude, berry, matte, glossy |
| Special | Glitter, gems, metallic, dramatic lashes | Editorial, festival, avant-garde |
| Style | Description | When to Use |
|---|---|---|
| No-Makeup Makeup | Barely visible enhancement, skin-first | Daily wear, office |
| Natural/Everyday | Visible but subtle, enhances features | Casual outings, photos |
| Glam | Full face, bold lips or eyes, polished | Events, date night |
| Bridal | Elegant, lasting, camera-ready | Weddings, formal events |
| Editorial | Creative, artistic, unconventional | Fashion, photography |
| Smoky Eye | Dark, blended eye focus, paired with nude lip | Evening events, drama |
| Bold Lip | Statement lip color, minimal eyes | Classic, impactful |
| Festival | Glitter, color, face gems, playful | Music festivals, parties |
Describe makeup for each facial area separately for best results:
Apply makeup to this photo:
- Base: [foundation type and coverage]
- Eyes: [eyeshadow colors, liner style, lash look]
- Cheeks: [blush color and placement, contour]
- Lips: [color, finish, style]
Use specific color names rather than generic ones:
Good: "dusty rose lipstick," "champagne gold eyeshadow," "terracotta blush"
Vague: "pink lipstick," "light eyeshadow," "some blush"
Specify the finish for a more accurate result:
Matte, satin, glossy, dewy, shimmer, metallic, glitter, velvet
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 a glamorous evening makeup look to this portrait. Full coverage matte foundation, sculpted contour on the cheekbones, warm bronze and gold smoky eyeshadow blended into the crease, dramatic winged black eyeliner, full false lash effect, rose gold highlighter on cheekbones, and a classic matte red lipstick. Polished and camera-ready."},
{"type": "image_url", "image_url": {"url": "https://example.com/bare-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 elegant bridal makeup to this face. Flawless dewy foundation, soft peach blush, champagne shimmer eyeshadow with subtle brown in the crease, thin brown eyeliner with individual lashes, groomed natural brows, and a soft mauve pink satin lipstick. Timeless, romantic, and photograph-ready."},
{"type": "image_url", "image_url": {"url": "https://example.com/bride-bare.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 an editorial avant-garde makeup look. Flawless porcelain base, no blush, graphic cobalt blue eyeliner extending past the outer eye in a geometric wing shape, no mascara for a clean modern look, bleached and brushed-up brows, and a deep plum matte lip. High-fashion editorial style."},
{"type": "image_url", "image_url": {"url": "https://example.com/model-clean.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 only a lipstick to this face photo. Deep berry-wine matte lipstick with a precise, clean lip line. Do not change anything else about the face, just add the lipstick."},
{"type": "image_url", "image_url": {"url": "https://example.com/face-closeup.jpg"}}
]
}
],
"stream": false
}'
# Step 1: Natural everyday look
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 natural everyday makeup: light tinted moisturizer, subtle peach blush, beige matte eyeshadow, brown mascara, tinted lip balm in rose. Keep it minimal and fresh."},
{"type": "image_url", "image_url": {"url": "https://example.com/my-face.jpg"}}
]
}
],
"stream": false
}'
# Step 2: Smoky eye evening look
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 a smoky eye look: medium coverage foundation, subtle contour, dark charcoal and black smoky eyeshadow blended outward, smudged black eyeliner on upper and lower lash line, volumizing mascara, nude lip with gloss. Dramatic but elegant."},
{"type": "image_url", "image_url": {"url": "https://example.com/my-face.jpg"}}
]
}
],
"stream": false
}'
# Step 3: Bold lip minimal eye look
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 a bold lip look: even skin base, light pink blush, minimal eye makeup with just mascara and clean brows, and a vibrant true red matte lipstick as the focal point. Classic and striking."},
{"type": "image_url", "image_url": {"url": "https://example.com/my-face.jpg"}}
]
}
],
"stream": false
}'