To roast in an air fryer, toss your vegetables in oil and seasonings, and place them in a single layer in the air fryer basket. Cook for the recommended time at the recommended temperature, shaking the basket occasionally to ensure even cooking.