关于 Real Estate Photo Generation
这项 skill 通过 each::sense API 根据自然语言提示生成房地产视觉内容,适合房产营销人员与设计者。功能涵盖房源图像、虚拟布置和翻新概念预览。
主要功能
- 01室内与室外房源图像
- 02空房间虚拟布置
- 03室内设计概念
- 04建筑效果图
- 05翻新预览
- 06航拍与黄昏视图
适用场景
- 01制作房源营销视觉内容
- 02为待售空房布置家具
- 03预览计划中的房屋翻新
- 04展示新建项目概念
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill real-estate-photo-generation安装后在 Claude Code 中输入/real-estate-photo-generation确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
房地产照片生成
使用 each::sense API 生成惊艳的房地产视觉内容。通过自然语言提示词,制作专业的房源照片、为空房间进行虚拟布置、设计室内空间、渲染建筑概念并预览翻新效果。
概述
each::sense API 提供全面的房地产可视化功能:
- 房源照片:为房源列表生成专业的室外和室内照片
- 虚拟布置:将空房间变成家具齐全、风格鲜明的空间
- 室内设计:为厨房、浴室、客厅等空间创建设计概念
- 建筑渲染:在新建或翻新工程开始前进行可视化展示
- 翻新预览:展示改造前后的变化,帮助买家设想房屋的潜力
快速开始
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a professional real estate photo of a modern 3-bedroom house exterior with manicured lawn, blue sky, warm afternoon lighting"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
房地产内容类型
| 内容类型 | 描述 | 最佳使用场景 |
|---|---|---|
| 室外照片 | 正面外立面、街景吸引力照片 | MLS 房源列表、营销材料 |
| 室内房间 | 客厅、卧室、厨房、浴室 | 房产导览、虚拟漫游 |
| 虚拟布置 | 通过数字方式为室内空间添加家具 | 空置房产营销 |
| 黄昏照片 | 黄昏/傍晚时分的室外摄影 | 高端房源、营造戏剧化效果 |
| 航拍视图 | 无人机视角的俯瞰画面 | 大型房产、地块可视化 |
| 建筑渲染 | 设计方案的 3D 可视化 | 新建工程、预售营销 |
| 翻新预览 | 改造前后的变化 | 待翻新房产潜力展示、投资者演示 |
使用场景示例
1. 房屋外观照片
生成经典的正面房屋房源照片:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Professional real estate exterior photo of a two-story colonial house with white siding, black shutters, red front door, landscaped front yard with flowering bushes, paved driveway, bright sunny day with blue sky and white clouds, wide angle lens perspective, HDR photography style"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
2. 客厅内景
打造温馨宜人的客厅照片:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Bright and airy open concept living room, hardwood floors, large windows with natural light streaming in, modern gray sectional sofa, white walls, fireplace with stone surround, 10 foot ceilings, professional real estate interior photography, wide angle shot"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
3. 厨房摄影
展示令人惊艳的厨房:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Modern farmhouse kitchen with white shaker cabinets, quartz countertops, stainless steel appliances, large center island with pendant lighting, subway tile backsplash, breakfast nook with window, professional real estate photography, bright natural lighting, wide angle perspective highlighting the spacious layout"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
4. 虚拟布置(从空房间到家具齐全)
使用现有照片改造空房间:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Virtually stage this empty living room with contemporary furniture: a modern beige sectional sofa, glass coffee table, area rug, floor lamp, wall art, potted plants. Keep the existing room architecture, flooring, and windows. Make it look professionally staged and inviting for real estate listing"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/empty-living-room.jpg"],
"mode": "max"
}'
5. 黄昏/傍晚外观
打造引人注目的傍晚街景效果:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Luxury home exterior at twilight, dusk photography, warm interior lights glowing through windows, dramatic purple and orange sky, landscape lighting illuminating walkway and architectural features, modern Mediterranean style villa, pool visible with underwater lighting, professional real estate twilight photography"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
6. 浴室翻新预览
呈现浴室改造效果:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Modern spa-like master bathroom renovation, freestanding soaking tub, walk-in shower with frameless glass and rainfall showerhead, double vanity with vessel sinks, large format marble tiles, LED mirror lighting, heated floors, neutral palette with brass fixtures, professional interior photography"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
7. 后院/户外空间
展示户外生活区域:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Expansive backyard with covered patio, outdoor kitchen with built-in grill and bar seating, rectangular swimming pool with spa, manicured lawn, mature landscaping, string lights overhead, outdoor fireplace, comfortable seating area, golden hour lighting, professional real estate photography showing entire outdoor space"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
8. 航拍/无人机视图
生成房产的俯瞰视角:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Aerial drone photography of residential property on 2-acre lot, birds eye view showing ranch-style home, detached 3-car garage, swimming pool, tennis court, circular driveway, surrounded by trees, neighboring properties visible, clear sunny day, professional real estate aerial photography"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
9. 从平面图生成 3D 渲染图
将建筑设计图可视化:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "3D architectural render of open floor plan home interior, view from above at 45 degree angle showing living room flowing into kitchen and dining area, furniture placed throughout, realistic materials and textures, afternoon sunlight through windows, architectural visualization style, professional quality"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
10. 翻新前后对比
展示改造潜力:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Transform this dated kitchen into a modern renovation: replace oak cabinets with white shaker style, add quartz countertops, install stainless steel appliances, update to pendant lighting over island, add subway tile backsplash, keep the same window and layout, photorealistic renovation preview"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://example.com/dated-kitchen.jpg"],
"mode": "max"
}'
使用 image_urls 进行虚拟布置
image_urls 参数可将现有房产照片作为参考,助力虚拟布置和翻新效果可视化:
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Virtually stage this empty bedroom as a luxurious master suite: king size bed with upholstered headboard, matching nightstands with lamps, bench at foot of bed, area rug, curtains on windows, tasteful artwork. Maintain the room dimensions, flooring, and natural light from the windows"}],
"model": "eachsense/beta",
"stream": true,
"image_urls": ["https://your-domain.com/empty-bedroom-photo.jpg"],
"mode": "max"
}'
虚拟布置技巧:
- 提供高质量、光线充足的空房间照片
- 指明需要保留的现有建筑特色
- 指定与房产风格相符的家具样式
- 要求家具比例真实、摆放自然
房地产摄影最佳实践
构图与视角
- 使用广角描述(“广角视图”“开阔全景”)拍下完整房间
- 室内照片指定角落视角,以展现空间纵深
- 提及天花板和地面,以体现房间高度
- 提及“垂直线条保持笔直”,避免画面变形
光线描述
- “明亮的自然光透过窗户洒入”
- “温暖的午后黄金时刻光线”
- “HDR 平衡曝光”,适用于带窗景的室内空间
- “柔和的漫射日光”,带来均匀、柔和的照明
布置与风格
- 布置风格保持中性,符合大众审美
- 指明“整洁无杂物”,营造专业观感
- 加入鲜花、书籍、毯子等生活元素
- 布置风格应与房产价位相匹配
技术质量
- 在提示词中加入“专业房地产摄影”
- 添加“高分辨率”或“细节丰富”,以获得清晰的效果
- 提及“已校正颜色”,确保准确呈现
- 加入“出版级质量”,让图片满足房源发布要求
提示词建议
房地产视觉内容的有效提示词要素:
| 要素 | 示例短语 |
|---|---|
| 广角 | “广角镜头”、“视野开阔”、“完整呈现房间” |
| 明亮通透 | “自然光倾泻而入”、“明亮宜人”、“空间采光充足” |
| 突出特色 | “展示壁炉”、“突出主厨厨房”、“呈现泳池” |
| 专业品质 | “符合 MLS 发布要求的照片”、“出版级质量”、“专业房地产摄影” |
| 时间 | “晨光”、“黄金时刻”、“暮光”、“正午阳光” |
| 建筑风格 | “现代农舍风格”、“当代风格”、“传统风格”、“中世纪现代风格” |
模式选择
根据对质量和速度的要求选择合适的模式:
| 模式 | 最适合 | 特点 |
|---|---|---|
max | 最终房源照片、营销材料、客户演示 | 最高质量、细节最多,最适合发布 |
eco | 快速预览、概念探索、草稿迭代 | 生成更快,适用于审核阶段 |
# High-quality listing 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" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Luxury master bedroom with king bed, tray ceiling, sitting area by bay window"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
# Quick concept preview
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Modern kitchen concept with waterfall island"}],
"model": "eachsense/beta",
"stream": true,
"mode": "eco"
}'
房源系列的多轮会话
使用 session_id,在为同一房源生成多张图片时保持一致性:
# Generate exterior shot
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Modern craftsman style home exterior, gray siding with white trim, covered front porch, landscaped yard, sunny day"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "property-123-listing",
"mode": "max"
}'
# Generate matching interior - maintains style consistency
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Living room interior of this craftsman home, matching the exterior style, built-in bookshelves, hardwood floors, neutral palette"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "property-123-listing",
"mode": "max"
}'
# Generate kitchen with same style language
curl -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Kitchen of this craftsman home, shaker cabinets, apron sink, butcher block island, consistent with the home style"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "property-123-listing",
"mode": "max"
}'
基于会话的房源系列的优势:
- 所有图片的建筑风格一致
- 色彩搭配和饰面协调统一
- 质量和光线处理方式一致
- 呈现专业房源资料包的整体感
错误处理
在集成中妥善处理 API 响应:
# Request with error handling
response=$(curl -s -w "\n%{http_code}" -X POST "https://eachsense-agent.core.eachlabs.run/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Modern house exterior photo"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}')
http_code=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d')
if [ "$http_code" -eq 200 ]; then
echo "Success: $body"
elif [ "$http_code" -eq 401 ]; then
echo "Error: Invalid API key"
elif [ "$http_code" -eq 429 ]; then
echo "Error: Rate limit exceeded, retry after delay"
else
echo "Error $http_code: $body"
fi
常见问题及解决方案:
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 401 未授权 | API 密钥无效或缺失 | 确认 EACHLABS_API_KEY 已正确设置 |
| 429 请求过多 | 超出速率限制 | 实现指数退避重试 |
| 400 错误请求 | 请求正文格式错误 | 验证 JSON 结构和必填字段 |
| 超时 | 生成内容复杂,耗时过长 | 可考虑使用 eco 模式加快生成 |
相关技能
- 图像生成 - 通用图像创作,适用于营销材料
- 图像编辑 - 修改和增强现有房源照片
- 产品视觉内容 - 展示家居产品和家具
评论
支持 Markdown