Peel and dice the onion, chop the tomato.
In an Instant Pot, set to saute mode, add onions and cook for 7-8 minutes or until slightly golden.
I have diced the onion finely so it can brown faster. Use a dice for it.
Once onions are brown, add ginger and garlic paste.
Cook for a minute, and then add chopped tomatoes.
Mix it well, and add chicken pieces.
Now add salt, cumin seeds, chili flakes, and mix them well. Keep cooking for another 5 minutes.
Add 2 chicken cubes and cook for another 3 minutes or until you see the chicken turning brown. (Total of 8 minutes)
Now add washed basmati rice and 2.5 cups of water.
Cover and pressure cook on the rice setting for 12 minutes.
If you don't have rice setting, then cook for 12 minutes under pressure