01 - Preheat air fryer to 320°F for 5 minutes to ensure even baking.
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 evenly blended.
04 - In a separate bowl, combine Guinness, buttermilk, melted butter, eggs, and vanilla extract. Whisk until fully incorporated.
05 - Pour wet ingredients into dry ingredients and stir until just combined. Do not overmix to prevent tough texture.
06 - Pour batter into prepared cake pan and smooth top with spatula for even rising.
07 - Place pan in preheated air fryer basket. Cook for 23-27 minutes until toothpick inserted in center comes out with few moist crumbs.
08 - Remove cake from air fryer and let cool in pan for 10 minutes, then transfer to wire rack to cool completely.
09 - Dust with powdered sugar before serving, or top with whipped cream or chocolate ganache if desired.