The Magic erased a 13-point, fourth-quarter deficit, aided by Dwight Howard's double-double of 19 points and 15 rebounds.
Ryan Anderson helped Orlando notch its fourth straight win with a team-high 24 points.
Andrea Bargnani led the Raptors with 28 points and seven rebounds.
Jose Calderon chipped in with 18 points and 13 assists for Toronto.
Swim Week Miami Beach 2014 [PHOTOS]