Back to Templates
AI Workflows
Cloud
Sign in required
AI Mascot Generator
Generate mascot with transparent background and multiple export sizes
Multi-step Pipeline
How It Works
4 steps in this workflow
- 1 Generate image with AI (DALL-E)
- 2 Remove background
- 3 Resize to 512×512
- 4 Convert to PNG
Code Examples
Use this template programmatically with the FloImg SDK or CLI
const mascot = await floimg
.generate('openai', {
prompt: 'Friendly robot mascot, modern flat design, teal colors, white background',
model: 'dall-e-3',
size: '1024x1024'
})
.transform('removeBackground')
.transform('resize', { width: 512, height: 512, fit: 'contain' })
.transform('convert', { to: 'image/png' })
.toBlob(); # AI Mascot Generator
name: "AI Mascot Generator"
steps:
- kind: generate
generator: openai
out: result # AI Mascot Generator
floimg generate openai \
--output result.png