Image Background Removal In Workers

I am looking to achieve image background removal in my worker and stumbled across this tweet https://x.com/CloudflareDev/status/1961054980606947832 and the associated blog post. This suggests that it should be possible to achieve this, either via a binding with the cloudflare images or via the worker AI. Unfortunately I can't find any reference anywhere else to this beta. I dont see any AI model anywhere in the documentation, nor do I find it mentioned anywhere in the image API documentation. Anybody know what the deal with this is? Also any other suggestions on how to achieve this in a worker is appreciated.
Cloudflare Developers (@CloudflareDev)
Background removal is in open beta for Cloudflare Images. You can use it for both hosted and remote images. Powered by Workers AI, it uses an image segmentation model to convert backgrounds into transparent pixels.
X
1 Reply
MichaelC
MichaelCOP2mo ago
Ah, just noticed the link in the blog, it is indeed in the image API documentation under segment transform.

Did you find this page helpful?