算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-interior-design【设计与创意】Redesign interiors from photos using each::sense AI. Transform existing rooms into new design concepts while preserving room structure. Supports all design styles from modern minimalist to bohemian, with realistic furniture, materials, and lighting. Use for: interior design concepts, renovation planning, client presentations, room makeovers, design m…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Redesign existing interiors from 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": "Redesign this living room in a japandi style: replace the furniture with low-profile pieces in natural wood and muted earth tones. Add a shoji-inspired room divider, floor cushions, a low coffee table, and indoor bonsai plants. Keep the room dimensions and window positions. Warm natural lighting, photorealistic interior design rendering."},
{"type": "image_url", "image_url": {"url": "https://example.com/current-living-room.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": "Redesign this living room in a japandi style: replace the furniture with low-profile pieces in natural wood and muted earth tones. Add a shoji-inspired room divider, floor cushions, a low coffee table, and indoor bonsai plants. Keep the room dimensions and window positions. Warm natural lighting, photorealistic interior design rendering."
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
Provide the current room plus a style reference or mood board:
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": "Redesign the room in the first image to match the style of the second image. Apply the same color palette, material choices, and furniture style. Preserve the room layout and window placement from the first image. Photorealistic interior design visualization."},
{"type": "image_url", "image_url": {"url": "https://example.com/current-room.jpg"}},
{"type": "image_url", "image_url": {"url": "https://example.com/inspiration-room.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.
| Style | Key Materials | Color Palette | Defining Features |
|---|---|---|---|
| Modern Minimalist | glass, steel, concrete | white, grey, black | clean lines, open space, few objects |
| Japandi | light wood, linen, ceramic | beige, sage, charcoal | wabi-sabi meets Scandi simplicity |
| Art Deco | marble, brass, velvet | emerald, gold, black | geometric patterns, luxury details |
| Bohemian | rattan, macrame, textiles | warm earthy + jewel tones | layered textures, global eclectic |
| Industrial | exposed brick, metal, concrete | grey, brown, black | raw materials, open-plan |
| Coastal Modern | white wood, rattan, sisal | white, navy, sand | airy, organic textures, natural light |
| Traditional | dark wood, silk, wool | burgundy, navy, gold | ornate details, symmetry |
"Redesign this [room type] in [style]:" + [specific changes] + [materials and colors] + "Keep [preserved elements]. [Lighting description], photorealistic interior design rendering."
Explicitly separate what should change from what should stay:
Change: all furniture, wall color, lighting fixtures, decor
Keep: room dimensions, window positions, ceiling height, floor layout
matte, glossy, satin, brushed, polished, textured, distressed,
whitewashed, lacquered, oiled, patinated, raw, honed, fluted
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": "Redesign this dated kitchen into a contemporary open kitchen: flat-panel white cabinets, quartz waterfall island in calacatta marble pattern, matte black fixtures and hardware, integrated appliances, pendant lights over the island. Keep the window placement and room footprint. Bright natural light, photorealistic architectural visualization."},
{"type": "image_url", "image_url": {"url": "https://example.com/old-kitchen.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": "Transform this bedroom into a cozy bohemian retreat: change wall color to warm terracotta, add a low platform bed with a rattan headboard and layered textile bedding in rust and cream, macrame wall hanging, vintage kilim rug, trailing pothos plants on a shelf. Warm evening lamp glow, photorealistic interior design photo."},
{"type": "image_url", "image_url": {"url": "https://example.com/plain-bedroom.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": "Redesign this bathroom into a spa-inspired space: replace tiles with large-format zellige tiles in sage green, freestanding oval soaking tub, floating vanity in natural oak with a vessel stone basin, matte brass fixtures, frameless glass shower partition, eucalyptus branch in a ceramic vase. Soft diffused lighting, photorealistic interior visualization."},
{"type": "image_url", "image_url": {"url": "https://example.com/old-bathroom.jpg"}}
]
}
],
"stream": false
}'
# Generate redesigns in multiple styles for client comparison
ROOM="https://example.com/current-room.jpg"
DESIGNS=(
"modern minimalist: white walls, clean-line furniture in light oak, minimal decor, lots of negative space"
"bohemian eclectic: warm terracotta walls, layered textiles, vintage furniture, plants everywhere"
"art deco luxury: dark teal walls, velvet furniture, brass accents, geometric patterns, dramatic lighting"
)
for DESIGN in "${DESIGNS[@]}"; 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\": \"Redesign this room in $DESIGN style. Keep the room dimensions and windows. Photorealistic interior design rendering.\"}],
\"image_urls\": [\"$ROOM\"],
\"stream\": false
}"
echo "---"
done
image_urls, you get a generic room, not a redesign of your specific space.