Set the air fryer to 350°F/180°C if necessary.
Peel and clean the onion, garlic, and carrots to prepare the veggies. Rinse the celery as well, and cut the ends if necessary. If you'd like, chop the vegetables; I prefer to leave them whole.
Remove the chicken's giblets if necessary.
Using kitchen paper, pat the chicken dry. Place the veggies and rosemary inside the cavity.
Mix the oil and all the spices together in a small bowl. Next, coat the chicken completely with the spice.
To distribute even more taste, you may also lift the skin on top and rub it below.
Use cooking spray or oil to coat the basket of your air fryer. Put the bird with its breast side down.
Bake the chicken for 45–50 minutes at 350°F/180°C, turn it over, and continue cooking for another 15–17 minutes, or until the chicken reaches an internal temperature of 165°F/74°C or the juices flow clear when punctured with a fork or knife.
Flip the chicken sooner (after 35–40 minutes of cooking) for exceptionally crispy skin.
Before slicing, take the chicken out of the air fryer and give it ten minutes to rest. This enables the very juicy chicken's fluids to settle.