I am able to export a Textbox rectangle as PNG or JPEG from figma screens Web App. However, couldn't find any way to export particular element as PNG/JPEG using figma APIs.
Figma API documentation doesn't help https://www.figma.com/developers/api#get-image-fills-endpoint