Preheat your air fryer to 320°F (160°C).
Grease a 6-inch cake pan with cooking spray or line it with parchment paper.
In a large bowl, sift together the flour, sugar, cocoa powder, baking powder, baking soda, and salt.
Stir in the hot water until the batter is smooth.
In a separate bowl, whisk together the vegetable oil, buttermilk, egg, and vanilla extract.
Gradually add the wet ingredients to the dry ingredients, mixing until well combined