重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
product-photography by tool-belt/skills
npx skills add https://github.com/tool-belt/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
关键:俯视角度,自然光,可见纹理,蒸汽/新鲜感提示
提示添加:"food photography, appetizing, fresh, natural daylight, shallow depth of field"
避免:看起来不自然的颜色,完全对称的摆盘(显得虚假)
关键:微距细节,反光表面,黑色或渐变背景
提示添加:"jewelry photography, macro, sparkle, reflective surface, luxury"
避免:平光(会消除光泽),杂乱的背景
关键:简洁的线条,深色或渐变背景,轮廓光
提示添加:"tech product photography, sleek, modern, rim lighting, premium"
避免:温暖/乡村风格的背景(不符合美学)
关键:平铺或轻微角度,大理石/干净表面,柔和色调
提示添加:"beauty product photography, clean, minimal, soft light, editorial"
避免:生硬的阴影,暗调氛围光(除非是奢侈品/小众产品)
关键:模特穿着或平铺,生活场景,品牌氛围
提示添加:"fashion photography, editorial, styled, natural pose"
避免:生活场景图使用纯白色背景(仅用于电商)
# 生成基础产品图像
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
每周安装量
60
代码仓库
GitHub 星标数
319
首次出现
今天
安全审计
已安装于
claude-code49
amp40
opencode40
kimi-cli40
codex40
github-copilot40
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
60
Repository
GitHub Stars
319
First Seen
Today
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code49
amp40
opencode40
kimi-cli40
codex40
github-copilot40
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
53,700 周安装
Pyth Network 开发指南:集成去中心化预言机实时价格数据到 Solana 应用
60 周安装
GCP开发最佳实践指南:Terraform、Cloud Functions、Cloud Run、Firestore与BigQuery
222 周安装
医学影像AI文献综述写作指南:七阶段工作流程与结构化模板
221 周安装
GPD Beta Groups:Google Play Beta测试管理命令行工具,轻松管理测试人员和版本分发
220 周安装
Eve Horizon 新项目设置指南:从初始化到部署的完整配置流程
226 周安装
营销活动策划框架与指南:目标、受众、渠道、衡量全流程解析
220 周安装
| Unboxing experience |
| 9 | Social proof | Rating overlay or lifestyle with caption |