Drain the soaked rice in a colander until fully drained.
Once the deep fried onions are ready, you can start to make the biryani.
Making the pulav/biryani:
Heat the oil (or oil plus ghee) in a large pressure cooker or pan.
Once the oil is hot, add the whole spices (cloves, cardamom, bay leaf, star anise, cumin seeds, fennel and cinnamon); stir until aromat; few seconds.
Tip in the chopped or sliced red onions and fry again on medium heat until just softened.