01 - Preheat the oven to 350°F. Lightly grease two 4-inch ramekins or mini cake pans with butter or cooking spray.
02 - In a small bowl, whisk together the flour, cocoa powder, baking powder, salt, and sugar until well blended.
03 - In a separate bowl, whisk the egg, milk, melted butter, and vanilla extract until smooth and fully incorporated.
04 - Pour the wet ingredients into the dry ingredients. Stir gently with a spatula until just combined. Do not overmix as this can make the cakes tough.
05 - Gently fold in the chocolate chips if using, distributing them evenly throughout the batter.
06 - Divide the batter evenly between the prepared ramekins, filling each about three-quarters full.
07 - Bake for 16-18 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs attached. The cakes should be set but slightly fudgy in the middle.
08 - Let the cakes cool in the ramekins for 5 minutes before carefully unmolding. Dust with powdered sugar or serve with berries and whipped cream if desired.