算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-exterior-remodel【设计与创意】Visualize exterior renovations using each::sense AI. Transform home and building exteriors with new siding, roofing, paint colors, landscaping, additions, and architectural modifications from a photo. Use for: renovation planning, curb appeal visualization, contractor proposals, real estate improvement, homeowner decision-making. Triggers: exterior r…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Visualize exterior renovations and home makeovers 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": "Remodel this house exterior: replace the siding with dark charcoal James Hardie board-and-batten, add a natural cedar accent around the front entry, replace the roof with standing seam metal in matte black, and update the front door to a warm wood pivot door. Keep the house structure, driveway, and surrounding trees. Photorealistic exterior rendering, sunny day."},
{"type": "image_url", "image_url": {"url": "https://example.com/current-house.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": "Remodel this house exterior: replace the siding with dark charcoal James Hardie board-and-batten, add a natural cedar accent around the front entry, replace the roof with standing seam metal in matte black, and update the front door to a warm wood pivot door. Keep the house structure, driveway, and surrounding trees. Photorealistic exterior rendering, sunny day."
}],
# Images are included in the message content array above
)
print(response.choices[0].message.content)
Provide the current property photo plus an inspiration exterior:
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": "Remodel the house in the first image to match the architectural style and materials of the second image. Apply the same color scheme, siding type, and landscaping approach. Keep the original house footprint and lot. Photorealistic result."},
{"type": "image_url", "image_url": {"url": "https://example.com/my-house.jpg"}},
{"type": "image_url", "image_url": {"url": "https://example.com/dream-house-inspiration.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 | Elements | Keywords |
|---|---|---|
| Siding | clapboard, board-and-batten, stucco, stone veneer, brick | replace siding, new cladding |
| Roofing | asphalt shingle, standing seam metal, clay tile, slate | new roof, reroof |
| Paint | body color, trim color, accent color, door color | repaint exterior, color change |
| Entry | front door, porch, columns, railings, steps | new front entry, porch addition |
| Windows | replacement windows, shutters, trim style | update windows, add shutters |
| Landscaping | lawn, garden beds, walkway, driveway, fencing | curb appeal, landscape design |
| Additions | garage, porch, deck, dormers, second story | home addition, expand |
"Remodel this [building type] exterior:" + [specific changes by category] + "Keep [preserved elements]. Photorealistic exterior rendering, [lighting/weather]."
Always state what must remain:
Keep the original house structure, footprint, driveway,
mature trees, and neighboring properties unchanged.
fiber cement (Hardie board), natural cedar, engineered stone,
cultured stone, stucco, lime wash, brick, vinyl, aluminum,
standing seam, architectural shingle, membrane
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": "Repaint this house exterior: body color in Benjamin Moore Hale Navy (deep navy blue), trim and window frames in crisp white, front door in a bold yellow ochre. Keep everything else the same — roof, landscaping, driveway. Photorealistic, bright overcast day for accurate color."},
{"type": "image_url", "image_url": {"url": "https://example.com/white-house.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 dated ranch house into a modern farmhouse: white board-and-batten siding, black-framed windows, a metal gable roof accent over the entryway, a covered porch with black steel columns, and updated landscaping with ornamental grasses and a flagstone path. Keep the house footprint. Photorealistic rendering, golden hour lighting."},
{"type": "image_url", "image_url": {"url": "https://example.com/dated-ranch.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": "Improve the curb appeal of this property: add a landscaped front yard with a curved stone-edged walkway, layered garden beds with boxwood hedges and seasonal flowers, two symmetrical Japanese maple trees flanking the entry, landscape lighting along the path, and a new mailbox. Keep the house itself unchanged. Photorealistic, late afternoon soft light."},
{"type": "image_url", "image_url": {"url": "https://example.com/plain-yard.jpg"}}
]
}
],
"stream": false
}'
HOUSE="https://example.com/client-house.jpg"
COLORS=(
"warm grey body with white trim and black front door"
"sage green body with cream trim and walnut-stained front door"
"classic white body with black trim and red front door"
"navy blue body with white trim and brass-accent front door"
)
for COLOR in "${COLORS[@]}"; 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\": \"Repaint this house exterior with $COLOR. Keep the roof, landscaping, and all structural elements the same. Photorealistic, overcast day for accurate color representation.\"}],
\"image_urls\": [\"$HOUSE\"],
\"stream\": false
}"
echo "---"
done