Hold down R, then press up and down in quick succession while you are in the air.
Timing matters more than speed here. The input has to go in while the bike still has enough airtime to complete the rotation, so take a large jump and initiate the flip just after you leave the ramp rather than at the peak.