spray the onion generously with vegetable oil. transfer the onion, cut side up to the air fryer basket and air-fry for 25 minutes. the onion petals will open more fully as it cooks, so spray with more vegetable oil at least twice during the cooking time.