用途
AI Product Photography 用于通过 inference.sh CLI(infsh)生成专业的产品摄影和商业图片。它面向需要产品图、生活场景图、样机图等商业视觉素材的场景,提供可直接运行的命令与提示词模板。
主要能力
该技能支持多种图像生成模型,资料中列出的模型与对应 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,适合商业品质
技能覆盖多种产品摄影风格:纯白背景工作室、生活场景、英雄图、平铺图、使用中/动作图。
覆盖的产品品类包括:电子产品、时尚/服饰、美妆/化妆品、食品与饮料、家居与家具、珠宝。
布光技巧包括:柔光工作室光、戏剧性/轮廓光、自然窗光、硬光/高对比。
电商模板包括:Amazon 主图、Amazon 生活场景图、Shopify 英雄横幅。
此外还支持批量生成多角度图片,以及生成后的放大、去背景等后处理流程。
使用方式
需要先安装 inference.sh CLI(infsh),安装说明见官方文档。随后登录:
infsh login
生成产品图的基本命令示例:
infsh app run falai/flux-dev --input '{
"prompt": "Professional product photo of wireless earbuds on white surface, soft studio lighting, commercial photography, high detail"
}'
不同风格与品类的命令结构相同,仅替换 prompt 内容。例如纯白背景工作室风格:
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"
}'
各产品品类、布光技巧与电商模板均提供对应的命令示例,结构一致,仅 prompt 不同。
批量生成多角度图片的示例:
# 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"
适用场景
- 电商产品主图与生活场景图制作
- 品牌广告与营销视觉素材生成
- 多角度产品展示图批量生成
- 生成后的放大与去背景处理
限制
资料未提供该技能的收费、价格、平台支持范围、生成效果保证或具体使用步骤之外的额外说明。使用前需安装 inference.sh CLI(infsh)并完成登录。相关技能可通过以下命令添加:
# 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@infsh-cli
浏览所有图像应用:
infsh app list --category image