We’re glad to inform you that we’ve extended our existing Editor API with interfaces that allow you to use generative AI within existing Pixo features.
Insert AI Sticker
To generate with AI and insert a sticker, simply
pixo_instance.exec('INSERT_STICKER', {
prompt: 'a smiling cartoon sun',
style: 'emoji',
position: 'top-right',
width: 0.25,
})
Replace Background with AI-generated Image
To replace the existing background with an AI-image, just
pixo_instance.exec('SET_BACKGROUND_TYPE', {
backgroundtype: 'replacement',
prompt: 'dark green forest',
style: 'photography',
})
Expand Image with AI
The recently released Expand feature has been added to the API too:
pixo_instance.exec('EXPAND', { expand: { left: -30, right: -30 } })
Full documentation available
All new APIs are fully documented here.
Happy coding!
