Best way to integrate APIs into plugin

I am building a Figma plugin and hoping to integrate some machine learning models via APIs. I was wondering if anyone has advice on the best way to go about this.

Would it be through node.js? Is there a way to integrate python code? If there are any resources one could point me to, that would be very helpful as well. Thank you so much!

Figma plugins work like a regular website. So you can use anything you can use on a website.