Skip to main contentThe outpaint API expands an image by generating AI content beyond its original boundaries. Use this to extend images in any direction while maintaining visual coherence with the original content.
What to build with it
- Expand product photos to fit different aspect ratios
- Add more canvas space for marketing materials
- Convert portrait images to landscape (or vice versa)
- Create wider backgrounds for hero images
Tips
- Start with smaller extensions (100-300px) for more coherent results
- Use lower creativity values (0.2-0.4) when you need the extension to closely match the original
- Higher creativity values (0.6-0.8) work well for abstract or textured backgrounds
Limitations
- Each direction can extend up to 2000 pixels
- At least one direction must have a non-zero extension value
- PNG inputs are converted to JPEG for processing
- Generated content may not perfectly match complex patterns or text