Adam Rooney started with a close-range effort after 67 minutes and, three minutes later, Stuart Golabek crossed for Jonathan Hayes to double the lead.
Nauris Bulvitis converted Hayes' far-post corner then Daniel Stratford found the net from the edge of the area.
Raith: McGurn, Wilson, Campbell, Murray, Hill (Mackie 82), Williamson, Walker, Ferry, Sloan (Weir 72), Kevin Smith (Amaya 75), Russell. Subs Not Used: O'Connor, Wedderburn.
Inverness CT: Esson, Tokely, Munro, Bulvitis, Golabek, Hayes (McBain 80), Proctor, Odhiambo (Sanchez 66), Duncan, Foran (Stratford 87), Rooney. Subs Not Used: Allison, Djebi-Zadi.
Booked: Golabek.
Goals: Rooney 67, Hayes 70, Bulvitis 77, Stratford 90.
Att: 1,568
Ref: C Thompson
Source: BBC Sport
Source: BBC Sport