Problem in including API

How can we include removebg API ( in a playcanvas project by passing a image_file?

Hi @savyashree and welcome,

You can add your regular Javascript code to do the Rest call (e.g. XHR, fetch, jQuery ajax etc.) to your API in any regular PlayCanvas script.

Check this manual page on how scripts work in PlayCanvas:

1 Like