Rinse and trim the okra, then cut them into ½-inch slices.
In a mixing bowl, pour in the buttermilk and add the sliced okra. Stir well to coat the okra completely and let it soak for about 10 minutes.
In another bowl, combine the cornmeal, all-purpose flour, garlic powder, onion powder, paprika, cayenne pepper (if using), salt, and black pepper. Mix well.
Remove the okra from the buttermilk and let the excess drip off.
Dredge the okra pieces in the cornmeal mixture, ensuring each piece is well coated.
Preheat your air fryer to 400°F (200°C) for 3-5 minutes.
Spray the air fryer basket with cooking spray to prevent sticking. Lay the coated okra pieces in a single layer in the basket.
Lightly spray the top of the okra with cooking spray for added crunch.
Fry the okra in the air fryer for about 15 minutes, shaking the basket halfway through cooking to ensure even crispiness, until golden brown.
Once done, remove from the air fryer and let them cool slightly before serving.