Grease and flour two round cake pans, or coat them with baking spray with flour.
In a large bowl, combine the cake mix, flour, cocoa powder, eggs, oil, water and vanilla. Beat on low for 1 minute, then on medium for 2 minutes. Scrape the bowl and mix briefly.
Fold in the sour cream with a spatula until no streaks remain.
Divide the batter evenly between the pans, filling each about two-thirds full.
Place a pan in the air fryer basket (both, if they fit with space around them). Air fry at 320°F for 12 to 15 minutes.
Insert a toothpick in the center. If it comes out with a few moist crumbs, the layer is done. If the batter is wet, bake 3 to 5 minutes more and test again. Repeat with the second layer if baking in batches.
Cool the layers in their pans for 10 minutes, then turn them out onto a wire rack to cool completely.
For the frosting, beat the canned frosting, powdered sugar, butter and vanilla on low until combined, then on medium for about 2 minutes until fluffy. Add more powdered sugar for a thicker frosting.
Place one layer on a cake stand and spread about 1/4 cup frosting on top. Add the second layer and spread another 1/4 cup on top.
Optional: spread a thin crumb coat over the whole cake and chill 30 to 60 minutes.
Frost the top and sides with the remaining frosting. Slice and serve.