Peppers and onions take about 12-16 minutes to cook in an air fryer at 375 F, but cooking time varies depending on your air fryer model and brand. Cut your vegetables to ½-inch strips before air frying for best results.