01 - Preheat your air fryer to 320°F for 5 minutes before preparing the batter.
02 - Grease and line a 7-inch round cake pan that fits your air fryer basket with parchment paper.
03 - In a large bowl, whisk together flour, sugar, cocoa powder, baking soda, and salt until well blended.
04 - In a separate bowl, combine Guinness, buttermilk, melted butter, eggs, and vanilla extract. Whisk until fully incorporated.
05 - Pour the wet ingredients into the dry ingredients and stir until just combined. Do not overmix—the batter should remain slightly thick.
06 - Transfer the batter to the prepared cake pan and smooth the top with a spatula.
07 - Place the pan into the preheated air fryer basket. Cook for 23 to 27 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.
08 - Remove the cake from the air fryer and let it cool in the pan for 10 minutes. Transfer to a wire rack to cool completely.
09 - Dust generously with powdered sugar before serving, or top with whipped cream or chocolate ganache if desired.