Preheat your air fryer to 400°F (200°C) for about 5 minutes.
In a large bowl, combine the olive oil, garlic powder, onion powder, smoked paprika, dried oregano, salt, black pepper, and cayenne pepper. Mix well to create a marinade.
Add the chicken pieces to the bowl and toss until they are evenly coated with the marinade. Let the chicken marinate for at least 15 minutes for better flavor.
Arrange the chicken in a single layer in the air fryer basket, making sure not to overcrowd. You may need to cook in batches depending on the size of your air fryer.
Cook the chicken for 25-30 minutes, flipping halfway through, until the chicken is golden brown and reaches an internal temperature of 165°F (75°C).
Once cooked, remove the chicken from the air fryer and let it rest for 5 minutes before serving.