Create an image and text nodes programmatically


I’m looking for a way to export an image and a text inside a website to a Figma file. So basically, the users will play with an image and text styles, then click an export button and that would create a Figma file with that image and text nodes.

Is that possible with the existent Figma APIs?