Back to Templates
AI Workflows
Cloud
Sign in required
AI Product Photography
Generate AI product photos with background removal and e-commerce-ready sizing
Multi-step Pipeline
How It Works
4 steps in this workflow
- 1 Generate image with AI (DALL-E)
- 2 Remove background
- 3 Resize to 800×800
- 4 Add caption "SKU-12345"
Code Examples
Use this template programmatically with the FloImg SDK or CLI
const product = await floimg
.generate('openai', {
prompt: 'Professional product photo of headphones on white background',
model: 'dall-e-3',
size: '1024x1024'
})
.transform('removeBackground')
.transform('resize', { width: 800, height: 800, fit: 'contain', background: '#ffffff' })
.transform('addCaption', { text: 'SKU-12345', position: 'bottom-right', fontSize: 12 })
.toBlob(); # AI Product Photography
name: "AI Product Photography"
steps:
- kind: generate
generator: openai
out: result # AI Product Photography
floimg generate openai \
--output result.png