product-photography by inferen-sh/skills
npx skills add https://github.com/inferen-sh/skills --skill product-photography通过 inference.sh CLI 使用 AI 创建专业的产品图片。
需要 inference.sh CLI (
infsh)。安装说明
infsh login
# 干净的影棚产品照
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "professional product photography, single premium wireless headphone on clean white background, soft studio lighting with subtle shadow, commercial e-commerce style, sharp focus, 4K quality",
"size": "2K"
}'
客户首先看到的主要图片。干净、聚焦、引人向往。
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "hero product shot, premium smartwatch floating at slight angle, clean gradient background transitioning from white to light grey, dramatic rim lighting, subtle reflection below, commercial photography, magazine quality, sharp details",
"size": "2K"
}'
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 规则 | 原因 |
|---|---|
| 产品占据画面 80% | 最大化视觉冲击力 |
| 轻微角度 (15-30 度) | 增加立体感,避免平铺直叙 |
| 一个主光 + 补光 | 创造深度,避免生硬阴影 |
| 中性或品牌色背景 | 保持焦点在产品上 |
亚马逊、Shopify 和大多数电商平台要求纯白色背景。
# 纯白色背景产品图
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product packshot, leather wallet standing upright at slight angle on pure white background #FFFFFF, soft even studio lighting, no shadows, e-commerce product photography, Amazon listing style, clean sharp focus",
"size": "2K"
}'
亚马逊要求:
产品置于使用场景中——展示其如何使用或归属环境。
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "lifestyle product photography, premium coffee mug on rustic wooden table beside an open book and reading glasses, morning sunlight streaming through window, cozy home atmosphere, shallow depth of field, warm tones, editorial style",
"size": "2K"
}'
展示产品相对于熟悉物体或人手的大小。
infsh app run falai/flux-dev-lora --input '{
"prompt": "product scale photography, compact portable speaker held in one hand, person showing how small and portable it is, clean blurred background, natural lighting, lifestyle tech photography",
"width": 1024,
"height": 1024
}'
突出纹理、材质质量或特定功能。
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "extreme close-up product detail, premium leather bag stitching and grain texture, macro photography, shallow depth of field, soft directional lighting highlighting texture, luxury product photography, editorial quality",
"size": "2K"
}'
多个产品或变体放在一起。
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product collection flat lay photography, three skincare bottles arranged in triangular composition on marble surface, minimal props, soft overhead lighting, beauty product photography, editorial style, coordinated brand aesthetic",
"size": "2K"
}'
| 角度 | 最适合 | 提示词关键词 |
|---|---|---|
| 平视 | 大多数产品,有亲和力 | "eye level shot", "straight on" |
| 轻微俯视 (30°) | 平铺图、食品、化妆品 | "overhead angle", "45 degree angle" |
| 鸟瞰 (90°) | 平铺构图 | "flat lay", "top down", "overhead" |
| 低角度 | 使产品看起来强大/高端 | "low angle", "looking up at product" |
| 3/4 角度 | 最通用,展示深度 | "three-quarter view", "slight angle" |
| 设置 | 效果 | 提示词关键词 |
|---|---|---|
| 柔光箱 (漫射光) | 均匀,阴影最少 | "soft studio lighting", "diffused light" |
| 轮廓/边缘光 | 戏剧性的轮廓光晕 | "rim lighting", "edge light", "backlit" |
| 自然窗光 | 温暖、真实、生活化 | "natural window light", "golden hour" |
| 硬质定向光 | 强烈的阴影,编辑风 | "dramatic directional lighting", "hard shadow" |
| 平坦/均匀光 | 电商,无阴影 | "even lighting", "no shadows", "flat light" |
| 阴影 | 效果 | 使用时机 |
|---|---|---|
| 无阴影 | 干净,悬浮感 | 亚马逊/电商平台要求 |
| 接触阴影 | 产品与表面接触处的微小阴影 | 有落地感但保持干净 |
| 投影 | 产品下方的柔和阴影 | 增加深度,专业感 |
| 戏剧性阴影 | 长而定向的阴影 | 编辑风、奢侈品、营造氛围 |
| 倒影 | 下方如镜面般的表面 | 科技、奢侈品、高端感 |
| 背景 | 最适合 | 提示词关键词 |
|---|---|---|
| 纯白色 (#FFFFFF) | 电商、市场平台 | "pure white background" |
| 浅灰色渐变 | 主图、高端产品 | "gradient background white to grey" |
| 大理石/石材 | 奢侈品、美妆、珠宝 | "marble surface" |
| 木质/乡村风 | 手工艺品、食品、天然产品 | "rustic wooden table" |
| 彩色 (品牌色) | 品牌一致性 | "background color [hex]" |
| 生活化环境 | 场景图 | "kitchen counter", "desk", "bathroom shelf" |
| 规则 | 应用 |
|---|---|
| 三分法则 | 将产品置于交叉点,适用于场景图 |
| 中心主导 | 电商/白底图——产品位于正中心 |
| 留白 | 为营销文案叠加留出空间 |
| 引导线 | 利用桌边、阴影将视线引向产品 |
| 奇数法则 | 3 或 5 个产品的组合比 2 或 4 个更好看 |
| 三角形构图 | 将 3 个物品排列成三角形以求平衡 |
一个完整的产品列表需要 7-9 张图片,顺序如下:
| 位置 | 图片类型 | 目的 |
|---|---|---|
| 1 | 主图 / 白底图 | 主要列表图片,白色背景 |
| 2 | 场景图 | 产品在使用中/场景中 |
| 3 | 功能展示图 | 突出关键功能 |
| 4 | 尺寸参照图 | 与手或已知物体对比大小 |
| 5 | 细节特写图 | 材质质量、工艺 |
| 6 | 其他角度图 | 背面或侧面视图 |
| 7 | 信息图 | 尺寸、规格、包含内容 |
| 8 | 包装图 | 开箱体验 |
| 9 | 社交证明图 | 评分叠加或带说明的场景图 |
# 生成一套完整的电商图片集
# 1. 主图/白底图
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product packshot, premium bluetooth speaker on pure white background, slight angle, soft studio lighting, subtle contact shadow, e-commerce photography, sharp, 4K",
"size": "2K"
}' --no-wait
# 2. 场景图
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "lifestyle product photography, bluetooth speaker on poolside table, summer setting, sunglasses and drink nearby, warm natural light, vacation vibes, editorial style",
"size": "2K"
}' --no-wait
# 3. 细节图
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "extreme close-up of speaker grille texture and premium materials, macro product photography, soft lighting, showing build quality, sharp detail",
"size": "2K"
}' --no-wait
# 4. 尺寸参照图
infsh app run falai/flux-dev-lora --input '{
"prompt": "person holding compact bluetooth speaker in one hand, showing portable size, clean blurred background, natural light, lifestyle tech photography",
"width": 1024,
"height": 1024
}' --no-wait
Key: overhead angles, natural light, visible texture, steam/freshness cues
Prompt add: "food photography, appetizing, fresh, natural daylight, shallow depth of field"
Avoid: artificial-looking colors, perfectly symmetrical plating (looks fake)
Key: macro detail, reflective surfaces, black or gradient backgrounds
Prompt add: "jewelry photography, macro, sparkle, reflective surface, luxury"
Avoid: flat lighting (kills sparkle), busy backgrounds
Key: clean lines, dark or gradient backgrounds, rim lighting
Prompt add: "tech product photography, sleek, modern, rim lighting, premium"
Avoid: warm/rustic backgrounds (wrong aesthetic)
Key: flat lay or slight angle, marble/clean surfaces, soft pastels
Prompt add: "beauty product photography, clean, minimal, soft light, editorial"
Avoid: harsh shadows, dark moody lighting (unless luxury/niche)
Key: on model or flat lay, lifestyle context, brand mood
Prompt add: "fashion photography, editorial, styled, natural pose"
Avoid: pure white background for lifestyle (save for e-commerce only)
# 生成基础产品图片
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "premium headphones on white background, studio product photography",
"size": "2K"
}'
# 编辑:将背景改为生活化场景
infsh app run bytedance/seededit-3-0-i2i --input '{
"prompt": "change the background to a modern minimalist desk setup with warm afternoon light, keep the headphones exactly the same",
"image": "headphones-white.png"
}'
# 为印刷放大图片
infsh app run falai/topaz-image-upscaler --input '{
"image": "headphones-lifestyle.png"
}'
| 错误 | 问题 | 解决方法 |
|---|---|---|
| 背景杂乱 | 产品被淹没 | 干净、简单的背景——产品是主角 |
| 平铺直叙的正视角度 | 看起来像证件照 | 轻微 15-30° 角度增加立体感 |
| 类别与灯光不匹配 | 科技产品用乡村木纹,食品用冷光 | 灯光需匹配产品类别的常规做法 |
| 道具过多 | 分散产品注意力 | 场景图最多使用 2-3 个辅助道具 |
| 整套图片风格不一致 | 显得不专业 | 使用相同的灯光设置、相同的背景系列 |
| 无尺寸参照 | 客户无法判断大小 | 至少包含一张与手或已知物体的对比图 |
| 分辨率过低 | 无法缩放,显得业余 | 生成 2K+ 图片,必要时放大 |
| 所有元素都绝对居中 | 静态、乏味 | 场景图使用三分法则,仅白底图居中 |
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@prompt-engineering
浏览所有应用:infsh app list
每周安装量
6.9K
代码库
GitHub 星标
182
首次出现
12 天前
安全审计
安装于
claude-code5.5K
gemini-cli4.9K
codex4.9K
amp4.9K
opencode4.9K
kimi-cli4.9K
Create professional product images with AI via inference.sh CLI.
Requires inference.sh CLI (
infsh). Install instructions
infsh login
# Clean studio packshot
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "professional product photography, single premium wireless headphone on clean white background, soft studio lighting with subtle shadow, commercial e-commerce style, sharp focus, 4K quality",
"size": "2K"
}'
The main image customers see first. Clean, focused, aspirational.
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "hero product shot, premium smartwatch floating at slight angle, clean gradient background transitioning from white to light grey, dramatic rim lighting, subtle reflection below, commercial photography, magazine quality, sharp details",
"size": "2K"
}'
| Rule | Why |
|---|---|
| Product fills 80% of frame | Maximizes visual impact |
| Slight angle (15-30 degrees) | Adds dimension vs flat front-on |
| One hero light + fill | Creates depth without harsh shadows |
| Neutral or brand-color background | Keeps focus on product |
Amazon, Shopify, and most marketplaces require pure white backgrounds.
# Pure white background packshot
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product packshot, leather wallet standing upright at slight angle on pure white background #FFFFFF, soft even studio lighting, no shadows, e-commerce product photography, Amazon listing style, clean sharp focus",
"size": "2K"
}'
Amazon Requirements:
Product in context — shows how it's used or where it belongs.
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "lifestyle product photography, premium coffee mug on rustic wooden table beside an open book and reading glasses, morning sunlight streaming through window, cozy home atmosphere, shallow depth of field, warm tones, editorial style",
"size": "2K"
}'
Shows product size relative to familiar objects or human hands.
infsh app run falai/flux-dev-lora --input '{
"prompt": "product scale photography, compact portable speaker held in one hand, person showing how small and portable it is, clean blurred background, natural lighting, lifestyle tech photography",
"width": 1024,
"height": 1024
}'
Highlights texture, material quality, or specific features.
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "extreme close-up product detail, premium leather bag stitching and grain texture, macro photography, shallow depth of field, soft directional lighting highlighting texture, luxury product photography, editorial quality",
"size": "2K"
}'
Multiple products or variants together.
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product collection flat lay photography, three skincare bottles arranged in triangular composition on marble surface, minimal props, soft overhead lighting, beauty product photography, editorial style, coordinated brand aesthetic",
"size": "2K"
}'
| Angle | Best For | Prompt Keyword |
|---|---|---|
| Eye level | Most products, relatable | "eye level shot", "straight on" |
| Slight above (30°) | Flat lay, food, cosmetics | "overhead angle", "45 degree angle" |
| Bird's eye (90°) | Flat lay compositions | "flat lay", "top down", "overhead" |
| Low angle | Making products look powerful/premium | "low angle", "looking up at product" |
| 3/4 angle | Most versatile, shows depth | "three-quarter view", "slight angle" |
| Setup | Look | Prompt Keywords |
|---|---|---|
| Soft box (diffused) | Even, minimal shadows | "soft studio lighting", "diffused light" |
| Rim/edge lighting | Dramatic outline glow | "rim lighting", "edge light", "backlit" |
| Natural window | Warm, authentic, lifestyle | "natural window light", "golden hour" |
| Hard directional | Strong shadows, editorial | "dramatic directional lighting", "hard shadow" |
| Flat/even | E-commerce, no shadows | "even lighting", "no shadows", "flat light" |
| Shadow | Effect | When to Use |
|---|---|---|
| No shadow | Clean, floating | Amazon/e-commerce requirements |
| Contact shadow | Tiny shadow where product meets surface | Grounded but clean |
| Drop shadow | Soft shadow below product | Adds depth, professional |
| Dramatic shadow | Long, directional shadow | Editorial, luxury, mood |
| Reflection | Mirror-like surface below | Tech, luxury, premium feel |
| Background | Best For | Prompt Keywords |
|---|---|---|
| Pure white (#FFFFFF) | E-commerce, marketplaces | "pure white background" |
| Light grey gradient | Hero shots, premium | "gradient background white to grey" |
| Marble/stone | Luxury, beauty, jewelry | "marble surface" |
| Wood/rustic | Artisan, food, natural products | "rustic wooden table" |
| Colored (brand) | Brand consistency | "background color [hex]" |
| Lifestyle environment | Context shots | "kitchen counter", "desk", "bathroom shelf" |
| Rule | Application |
|---|---|
| Rule of thirds | Place product at intersection points for lifestyle shots |
| Center dominant | E-commerce/packshots — product dead center |
| Negative space | Leave room for text overlay if marketing use |
| Leading lines | Use table edges, shadows to draw eye to product |
| Odd numbers | Groups of 3 or 5 products look better than 2 or 4 |
| Triangle composition | Arrange 3 items in a triangle for balance |
A complete product listing needs 7-9 images in this order:
| Position | Image Type | Purpose |
|---|---|---|
| 1 | Hero / packshot | Primary listing image, white background |
| 2 | Lifestyle | Product in use/context |
| 3 | Feature callout | Key feature highlighted |
| 4 | Scale reference | Size in hand or next to known object |
| 5 | Detail close-up | Material quality, craftsmanship |
| 6 | Alternate angle | Back or side view |
| 7 | Infographic | Dimensions, specs, what's included |
| 8 | Packaging |
# Generate a complete e-commerce set
# 1. Hero packshot
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "product packshot, premium bluetooth speaker on pure white background, slight angle, soft studio lighting, subtle contact shadow, e-commerce photography, sharp, 4K",
"size": "2K"
}' --no-wait
# 2. Lifestyle
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "lifestyle product photography, bluetooth speaker on poolside table, summer setting, sunglasses and drink nearby, warm natural light, vacation vibes, editorial style",
"size": "2K"
}' --no-wait
# 3. Detail
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "extreme close-up of speaker grille texture and premium materials, macro product photography, soft lighting, showing build quality, sharp detail",
"size": "2K"
}' --no-wait
# 4. Scale
infsh app run falai/flux-dev-lora --input '{
"prompt": "person holding compact bluetooth speaker in one hand, showing portable size, clean blurred background, natural light, lifestyle tech photography",
"width": 1024,
"height": 1024
}' --no-wait
Key: overhead angles, natural light, visible texture, steam/freshness cues
Prompt add: "food photography, appetizing, fresh, natural daylight, shallow depth of field"
Avoid: artificial-looking colors, perfectly symmetrical plating (looks fake)
Key: macro detail, reflective surfaces, black or gradient backgrounds
Prompt add: "jewelry photography, macro, sparkle, reflective surface, luxury"
Avoid: flat lighting (kills sparkle), busy backgrounds
Key: clean lines, dark or gradient backgrounds, rim lighting
Prompt add: "tech product photography, sleek, modern, rim lighting, premium"
Avoid: warm/rustic backgrounds (wrong aesthetic)
Key: flat lay or slight angle, marble/clean surfaces, soft pastels
Prompt add: "beauty product photography, clean, minimal, soft light, editorial"
Avoid: harsh shadows, dark moody lighting (unless luxury/niche)
Key: on model or flat lay, lifestyle context, brand mood
Prompt add: "fashion photography, editorial, styled, natural pose"
Avoid: pure white background for lifestyle (save for e-commerce only)
# Generate base product image
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "premium headphones on white background, studio product photography",
"size": "2K"
}'
# Edit: change background to lifestyle
infsh app run bytedance/seededit-3-0-i2i --input '{
"prompt": "change the background to a modern minimalist desk setup with warm afternoon light, keep the headphones exactly the same",
"image": "headphones-white.png"
}'
# Upscale for print
infsh app run falai/topaz-image-upscaler --input '{
"image": "headphones-lifestyle.png"
}'
| Mistake | Problem | Fix |
|---|---|---|
| Busy backgrounds | Product gets lost | Clean, simple backgrounds — product is the star |
| Flat front-on angle | Looks like a mugshot | Slight 15-30° angle adds dimension |
| Wrong lighting for category | Tech on rustic wood, food in cold light | Match lighting to product category conventions |
| Too many props | Distracts from product | Max 2-3 supporting props for lifestyle shots |
| Inconsistent style across set | Looks unprofessional | Same lighting setup, same background family |
| No scale reference | Customers can't judge size | Include at least one shot with hands or known objects |
| Low resolution | Can't zoom, looks amateur | Generate at 2K+ and upscale if needed |
| Perfectly centered everything | Static, boring layout | Use rule of thirds for lifestyle, center only for packshots |
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@prompt-engineering
Browse all apps: infsh app list
Weekly Installs
6.9K
Repository
GitHub Stars
182
First Seen
12 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code5.5K
gemini-cli4.9K
codex4.9K
amp4.9K
opencode4.9K
kimi-cli4.9K
45,500 周安装
| Unboxing experience |
| 9 | Social proof | Rating overlay or lifestyle with caption |