01 - Preheat air fryer to 320°F for 5 minutes to ensure proper baking temperature.
02 - Grease and line a 7-inch round cake pan that fits comfortably in your air fryer basket.
03 - Whisk together flour, sugar, cocoa powder, baking soda, and salt in a large bowl until well incorporated.
04 - Combine Guinness, buttermilk, melted butter, eggs, and vanilla extract in a separate bowl. Mix thoroughly until smooth.
05 - Pour wet ingredients into dry ingredients and stir until just combined. Avoid overmixing to prevent dense texture.
06 - Pour batter into prepared cake pan and smooth the top evenly with a spatula.
07 - Place pan in preheated air fryer basket. Cook for 23-27 minutes until toothpick inserted in center comes out with moist crumbs.
08 - Remove from air fryer and let cool in pan for 10 minutes. Transfer to wire rack to cool completely.
09 - Dust with powdered sugar before serving. Top with whipped cream or chocolate ganache if desired.