Add the frozen green beans to a bowl with the olive oil, garlic powder, onion powder, salt, and black pepper. Toss to coat.
Add the green beans to the air fryer basket in an even layer.
Air fry for 4–6 minutes. Toss or shake the basket, then cook for another 4–6 minutes.
Start checking the green beans around the 8-minute mark. Remove them when they are hot throughout and tender with lightly browned edges. Continue cooking for another minute or two at a time if you prefer them softer or more browned.
Notes
Cook from frozen: No need to thaw the green beans first.
Use texture as your guide: Start checking around 8 minutes and add more time as needed. Overcooking can make frozen green beans rubbery.
Avoid overcrowding: Cook in batches if needed so the hot air can circulate.
Seasoning: Use your favorite all-purpose seasoning in place of the garlic and onion powder, if you prefer.