关于 ai-product-photography
使用 inference.sh 命令行生成产品摄影图的技能,面向制作商业产品图片的团队,提供模型选择、风格示例、批量生成和放大流程。
主要功能
- 01使用列出的模型生成图片
- 02提供产品摄影风格示例
- 03电商图片模板
- 04批量生成产品角度图
- 05后期流程中放大图片
适用场景
- 01制作白底商品主图
- 02生成生活场景产品图
- 03批量生成多个产品视角
- 04为 Shopify 商店制作主视觉图
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ j-star-films-studios/ vibecode-protocol-suite --skill ai-product-photography安装后在 Claude Code 中输入/ai-product-photography确认已加载。
详细介绍
AI 产品摄影
通过 inference.sh CLI 生成专业的产品摄影图。
快速开始
curl -fsSL https://cli.inference.sh | sh && infsh login
# Generate product shot
infsh app run falai/flux-dev --input '{
"prompt": "Professional product photo of wireless earbuds on white surface, soft studio lighting, commercial photography, high detail"
}'
可用模型
| 模型 | App ID | 适用场景 |
|---|---|---|
| FLUX Dev | falai/flux-dev | 高品质、细节丰富 |
| FLUX Schnell | falai/flux-schnell | 快速迭代 |
| Imagen 3 | google/imagen-3 | 照片级真实感 |
| Grok | xai/grok-imagine-image | 创意变体 |
| Seedream | bytedance/seedream-3-0 | 商业品质 |
产品摄影风格
白色背景棚拍
infsh app run falai/flux-dev --input '{
"prompt": "Product photography of a luxury watch on pure white background, professional studio lighting, sharp focus, e-commerce style, high resolution"
}'
生活方式场景
infsh app run falai/flux-dev --input '{
"prompt": "Lifestyle product photo of coffee mug on wooden desk, morning sunlight through window, cozy home office setting, Instagram aesthetic"
}'
主视觉图
infsh app run falai/flux-dev --input '{
"prompt": "Hero product shot of smartphone floating at angle, dramatic lighting, gradient background, tech advertising style, premium feel"
}'
平铺俯拍
infsh app run falai/flux-dev --input '{
"prompt": "Flat lay product photography of skincare products arranged aesthetically, marble surface, eucalyptus leaves as props, beauty brand style"
}'
使用中 / 动作场景
infsh app run falai/flux-dev --input '{
"prompt": "Action shot of running shoes mid-stride, motion blur background, athletic lifestyle, Nike advertisement style"
}'
产品类别
电子产品
infsh app run falai/flux-dev --input '{
"prompt": "Professional product photo of wireless headphones, matte black finish, floating on dark gradient background, rim lighting, tech product photography"
}'
时尚 / 服饰
infsh app run falai/flux-dev --input '{
"prompt": "Fashion product photography of leather handbag, studio setting, soft shadows, luxury brand aesthetic, Vogue style"
}'
美妆 / 化妆品
infsh app run falai/flux-dev --input '{
"prompt": "Beauty product photography of lipstick with color swatches, clean white background, soft lighting, high-end cosmetics advertising"
}'
食品和饮料
infsh app run falai/flux-dev --input '{
"prompt": "Food photography of craft beer bottle with condensation, rustic wooden table, warm lighting, artisanal brand aesthetic"
}'
家居和家具
infsh app run falai/flux-dev --input '{
"prompt": "Interior product photo of modern armchair in minimalist living room, natural lighting, Scandinavian design style, lifestyle context"
}'
珠宝
infsh app run falai/flux-dev --input '{
"prompt": "Jewelry product photography of diamond ring, black velvet surface, dramatic spotlight, sparkle and reflection, luxury advertising"
}'
灯光技巧
柔和棚拍光
infsh app run falai/flux-dev --input '{
"prompt": "Product photo with soft diffused studio lighting, minimal shadows, clean and professional, commercial photography"
}'
戏剧化 / 轮廓光
infsh app run falai/flux-dev --input '{
"prompt": "Product photo with dramatic rim lighting, dark background, glowing edges, premium tech aesthetic"
}'
自然窗光
infsh app run falai/flux-dev --input '{
"prompt": "Product photo with natural window light, soft shadows, lifestyle setting, warm and inviting"
}'
硬光 / 高对比度
infsh app run falai/flux-dev --input '{
"prompt": "Product photo with hard directional lighting, strong shadows, bold contrast, editorial style"
}'
电商模板
Amazon 主图
infsh app run falai/flux-dev --input '{
"prompt": "Amazon product listing main image, pure white background RGB 255 255 255, product fills 85% of frame, professional studio lighting, no text or graphics"
}'
Amazon 生活方式图片
infsh app run falai/flux-dev --input '{
"prompt": "Amazon lifestyle product image, product in natural use context, relatable setting, shows scale and use case"
}'
Shopify 主视觉图
infsh app run falai/flux-dev --input '{
"prompt": "Shopify hero banner product image, lifestyle context, space for text overlay on left, premium brand aesthetic"
}'
批量生成
# Generate multiple angles
PRODUCT="luxury watch"
ANGLES=("front view" "45 degree angle" "side profile" "detail shot of face")
for angle in "${ANGLES[@]}"; do
infsh app run falai/flux-dev --input "{
\"prompt\": \"Professional product photography of $PRODUCT, $angle, white background, studio lighting\"
}" > "product_${angle// /_}.json"
done
后期处理工作流
# 1. Generate base product image
infsh app run falai/flux-dev --input '{
"prompt": "Product photo of headphones..."
}' > product.json
# 2. Upscale for high resolution
infsh app run falai/topaz-image-upscaler --input '{
"image_url": "<product-url>",
"scale": 2
}' > upscaled.json
# 3. Remove background if needed
infsh app run falai/birefnet --input '{
"image_url": "<upscaled-url>"
}' > cutout.json
提示词公式
[Product Type] + [Setting/Background] + [Lighting] + [Style] + [Technical]
示例
"Wireless earbuds on white marble surface, soft studio lighting, Apple advertising style, 8K, sharp focus"
"Sneakers floating on gradient background, dramatic rim lighting, Nike campaign aesthetic, commercial photography"
"Skincare bottle with water droplets, spa setting with stones, natural lighting, luxury beauty brand style"
最佳实践
- 风格统一 - 所有图片都要符合品牌美学
- 高分辨率 - 使用高品质模型,必要时进行放大
- 多个角度 - 生成正面、侧面和细节视图
- 场景很重要 - 相较于纯白背景图,生活方式图片的转化效果更好
- 道具和布景 - 添加相关道具,提升视觉趣味
- 灯光统一 - 同一产品系列保持相同的灯光风格
相关技能
# Image generation models
npx skills add inference-sh/skills@ai-image-generation
# FLUX specific
npx skills add inference-sh/skills@flux-image
# Image upscaling
npx skills add inference-sh/skills@image-upscaling
# Background removal
npx skills add inference-sh/skills@background-removal
# Full platform skill
npx skills add inference-sh/skills@inference-sh
浏览所有图像应用:infsh app list --category image
评论
支持 Markdown