npx skills add https://github.com/eachlabs/skills --skill 'Product Photo Generation'使用 each::sense API 生成专业的产品摄影。为任何商品创建电商就绪的图像、生活场景照片和影棚品质的产品视觉效果。
each::sense API 能够生成适用于以下场景的高质量产品摄影:
您也可以通过 image_urls 提供您自己的产品图像,将您的实际产品置于专业风格的场景中。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Generate a professional product photo of a minimalist ceramic coffee mug on a white background with soft studio lighting",
"mode": "max"
}'
| 风格 | 描述 | 最佳用途 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 纯白背景 | 产品干净、独立地置于纯白背景上 | 电商、市场平台、产品目录 |
| 生活场景 | 产品置于真实世界环境或情境中 | 社交媒体、品牌故事叙述 |
| 平铺摆拍 | 俯视视角,搭配摆放道具 | 时尚、食品、配饰 |
| 使用情境 | 产品正在被使用或处于其自然环境中 | 营销活动、广告 |
| 主视觉图 | 具有冲击力的戏剧性灯光和角度 | 主页横幅、特色产品 |
| 细节特写 | 近距离聚焦于纹理和工艺 | 奢侈品、手工制品 |
标准的电商产品摄影,带有干净的白色背景。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Professional product photo of a stainless steel water bottle on pure white background, centered composition, soft box lighting from above and sides, no shadows, e-commerce style, 4K quality",
"mode": "max"
}'
产品展示在令人向往的真实世界环境中。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Lifestyle product photography of premium wireless headphones on a modern wooden desk, morning light through window, MacBook and coffee cup in soft focus background, warm and inviting atmosphere",
"mode": "max"
}'
俯视视角,搭配互补的道具。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Flat lay product photography of a leather wallet, arranged with sunglasses, car keys, and a fountain pen on marble surface, overhead shot, even lighting, editorial style composition",
"mode": "max"
}'
用于营销材料的高冲击力产品图像。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Hero shot of a luxury perfume bottle, dramatic side lighting creating elegant shadows, dark moody background with subtle gradient, glass reflections and caustics, premium advertising quality",
"mode": "max"
}'
近距离聚焦于产品纹理和工艺。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Macro detail shot of handcrafted leather bag stitching, extreme close-up showing texture and quality of leather grain, shallow depth of field, warm directional lighting highlighting craftsmanship",
"mode": "max"
}'
产品正在被积极使用或演示。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Action product shot of running shoes in motion, dynamic angle showing flexibility, slight motion blur on background, athletic track setting, energetic and sporty atmosphere",
"mode": "max"
}'
为特定季节或节日设计的产品照片。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Holiday themed product photo of a scented candle surrounded by pine branches, dried oranges, and cinnamon sticks, warm cozy lighting, festive winter atmosphere, gift-ready presentation",
"mode": "max"
}'
产品与参考物一同展示以显示比例。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Product scale photo of a compact Bluetooth speaker next to a smartphone and coffee cup for size reference, clean white background, even lighting, showing portable dimensions clearly",
"mode": "max"
}'
产品与其包装一同展示,体现开箱体验。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Product and packaging photo of premium skincare bottle emerging from elegant black box, tissue paper visible, unboxing moment, luxury presentation, soft lighting on neutral background",
"mode": "max"
}'
通过 image_urls 提供实际的产品照片,将您的产品置于专业风格的场景中。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Place this product in a modern kitchen setting, morning light, marble countertop, lifestyle photography style",
"image_urls": ["https://example.com/my-product.jpg"],
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Put this product on a pure white background with professional studio lighting, remove existing background, e-commerce ready",
"image_urls": ["https://example.com/raw-product-photo.jpg"],
"mode": "max"
}'
有效的产品摄影提示词包括:
灯光描述词:
角度说明:
背景细节:
风格参考:
道具和情境:
| 模式 | 最佳用途 | 输出质量 |
|---|---|---|
max | 主视觉图、营销材料、高级产品 | 最高质量,细节渲染 |
eco | 快速迭代、批量目录照片、测试概念 | 快速生成,良好质量 |
使用 max 模式处理最终的营销素材和主视觉图像。使用 eco 模式进行快速原型设计和快速生成多个变体。
使用 session_id 来保持产品线或目录系列的一致性。
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Generate a product photo of a blue ceramic coffee mug on white background with soft natural lighting, minimalist style",
"session_id": "product-catalog-2024",
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Now generate the matching red ceramic mug in the same style and lighting setup",
"session_id": "product-catalog-2024",
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Create a lifestyle version showing both mugs on a breakfast table with croissants",
"session_id": "product-catalog-2024",
"mode": "max"
}'
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 401 未授权 | API 密钥无效或缺失 | 验证 X-API-Key 请求头是否正确设置 |
| 400 错误请求 | 请求体格式错误 | 检查 JSON 语法和必填字段 |
| 429 请求过多 | 请求过于频繁 | 实现指数退避重试 |
| 500 服务器错误 | 服务暂时不可用 | 短暂延迟后重试 |
for i in 1 2 3; do
response=$(curl -s -w "%{http_code}" -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Professional product photo of wireless earbuds on white background",
"mode": "max"
}')
http_code="${response: -3}"
if [ "$http_code" -eq 200 ]; then
echo "${response%???}"
break
fi
sleep $((2**i))
done
每周安装次数
–
代码仓库
GitHub 星标数
8
首次出现时间
–
安全审计
Generate professional product photography with the each::sense API. Create e-commerce ready images, lifestyle shots, and studio-quality product visuals for any item.
The each::sense API enables generation of high-quality product photography suitable for:
You can also provide your own product images via image_urls to place your actual products into professionally styled scenes.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Generate a professional product photo of a minimalist ceramic coffee mug on a white background with soft studio lighting",
"mode": "max"
}'
| Style | Description | Best For |
|---|---|---|
| White Background | Clean, isolated product on pure white | E-commerce, marketplaces, catalogs |
| Lifestyle | Product in real-world context or environment | Social media, brand storytelling |
| Flat Lay | Top-down view with arranged props | Fashion, food, accessories |
| In-Context | Product being used or in its natural setting | Marketing campaigns, ads |
| Hero Shot | Dramatic lighting and angles for impact | Homepage banners, featured products |
| Detail Shot | Close-up focusing on texture and craftsmanship | Luxury goods, handmade items |
Standard e-commerce product photography with clean white background.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Professional product photo of a stainless steel water bottle on pure white background, centered composition, soft box lighting from above and sides, no shadows, e-commerce style, 4K quality",
"mode": "max"
}'
Product shown in an aspirational real-world setting.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Lifestyle product photography of premium wireless headphones on a modern wooden desk, morning light through window, MacBook and coffee cup in soft focus background, warm and inviting atmosphere",
"mode": "max"
}'
Top-down arrangement with complementary props.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Flat lay product photography of a leather wallet, arranged with sunglasses, car keys, and a fountain pen on marble surface, overhead shot, even lighting, editorial style composition",
"mode": "max"
}'
High-impact product image for marketing materials.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Hero shot of a luxury perfume bottle, dramatic side lighting creating elegant shadows, dark moody background with subtle gradient, glass reflections and caustics, premium advertising quality",
"mode": "max"
}'
Close-up focusing on product texture and craftsmanship.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Macro detail shot of handcrafted leather bag stitching, extreme close-up showing texture and quality of leather grain, shallow depth of field, warm directional lighting highlighting craftsmanship",
"mode": "max"
}'
Product being actively used or demonstrated.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Action product shot of running shoes in motion, dynamic angle showing flexibility, slight motion blur on background, athletic track setting, energetic and sporty atmosphere",
"mode": "max"
}'
Product styled for specific season or holiday.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Holiday themed product photo of a scented candle surrounded by pine branches, dried oranges, and cinnamon sticks, warm cozy lighting, festive winter atmosphere, gift-ready presentation",
"mode": "max"
}'
Product shown with reference objects for scale.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Product scale photo of a compact Bluetooth speaker next to a smartphone and coffee cup for size reference, clean white background, even lighting, showing portable dimensions clearly",
"mode": "max"
}'
Product with its packaging for unboxing experience.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Product and packaging photo of premium skincare bottle emerging from elegant black box, tissue paper visible, unboxing moment, luxury presentation, soft lighting on neutral background",
"mode": "max"
}'
Provide actual product photos via image_urls to place your products into professionally styled scenes.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Place this product in a modern kitchen setting, morning light, marble countertop, lifestyle photography style",
"image_urls": ["https://example.com/my-product.jpg"],
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Put this product on a pure white background with professional studio lighting, remove existing background, e-commerce ready",
"image_urls": ["https://example.com/raw-product-photo.jpg"],
"mode": "max"
}'
Effective prompts for product photography include:
Lighting descriptors:
Angle specifications:
Background details:
Style references:
Props and context:
| Mode | Best For | Output Quality |
|---|---|---|
max | Hero shots, marketing materials, premium products | Highest quality, detailed rendering |
eco | Quick iterations, bulk catalog photos, testing concepts | Fast generation, good quality |
Use max mode for final marketing assets and hero images. Use eco mode for rapid prototyping and generating multiple variations quickly.
Use session_id to maintain consistency across a product line or catalog series.
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Generate a product photo of a blue ceramic coffee mug on white background with soft natural lighting, minimalist style",
"session_id": "product-catalog-2024",
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Now generate the matching red ceramic mug in the same style and lighting setup",
"session_id": "product-catalog-2024",
"mode": "max"
}'
curl -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Create a lifestyle version showing both mugs on a breakfast table with croissants",
"session_id": "product-catalog-2024",
"mode": "max"
}'
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid or missing API key | Verify X-API-Key header is set correctly |
| 400 Bad Request | Malformed request body | Check JSON syntax and required fields |
| 429 Rate Limited | Too many requests | Implement exponential backoff |
| 500 Server Error | Service temporarily unavailable | Retry after a brief delay |
for i in 1 2 3; do
response=$(curl -s -w "%{http_code}" -X POST "https://sense.eachlabs.run/chat" \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"message": "Professional product photo of wireless earbuds on white background",
"mode": "max"
}')
http_code="${response: -3}"
if [ "$http_code" -eq 200 ]; then
echo "${response%???}"
break
fi
sleep $((2**i))
done
Weekly Installs
–
Repository
GitHub Stars
8
First Seen
–
Security Audits
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
45,100 周安装
workflow-init:Vercel Workflow DevKit 自动化初始化工具,支持 Next.js/Nuxt/SvelteKit 等主流框架
318 周安装
股票行情实时查询工具 - 获取股价、成交量、市值、移动平均线等数据
313 周安装
2025 Node.js 最佳实践指南:框架选择、架构原则与异步模式
1 周安装
产品愿景AI工具 - 快速生成鼓舞人心、可实现的产品愿景声明 | 产品管理必备
324 周安装
反重力工作流技能:自动化多阶段任务编排,实现SaaS发布、安全审计、AI系统构建
317 周安装
cmux调试窗口使用指南 - macOS调试菜单与窗口管理工具
320 周安装