How i can get all images as jpg/png file from figma design?

I need to export all images from figma design as jpg/png and etc file.
How i can do this using REST api?

Use the “Get image” or “Get image fills” endpoint depending on what you need.
https://www.figma.com/developers/api#get-images-endpoint
https://www.figma.com/developers/api#get-image-fills-endpoint