Problem in including API

hello,
How can we include removebg API (https://www.remove.bg/api#get-started) 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:

https://developer.playcanvas.com/en/user-manual/scripting/creating-new/

1 Like