Dynamic Background via API

I am looking to send a video and URL to create a Dynamic background using the video.

Which API’s can I use to send the (1) video and (2) URL and receive the final result (video with the dynamic background) ?

Thank you for your help.