You may have heard of vending machines or ATMs that give out gold bars or chocolate treats or potato chips. But a bakery in America has now come up with the world's first 24-hour "cup-cake machine".
The pink-coloured device at the Sprinkles Bakery in Beverly Hills in Los Angeles holds 595 of the tiny cup treats, a report said.
Customers can buy the cakes with their credit cards.
A touch-screen display lets people choose from a range of flavours, including chocolate marshmallow and cinnamon sugar.
For those who want the tasty treats during odd hours of the day, the machine is available 24 hours a day.