Mo Williams scored 16 points and Shaquille O’Neal had 12 for Cleveland, which had won five straight over Toronto and nine of 10.
Hedo Turkoglu scored 12 points in his Raptors debut and Marco Belinelli had 10.
Trailing, 78-71, to start the fourth, Cleveland coach Mike Brown left James on the bench and Toronto took advantage, outscoring the Cavaliers, 9-3, and building an 87-74 lead by the time James returned with 8:40 remaining.
Even with James back, Cleveland struggled to cut into the lead. A pair of free throws by Williams and a 3-pointer by Gibson cut it to 93-83 with 4:06 left, but Antoine Wright answered with a 3-pointer for Toronto.
James wasn’t done, making one free throw, then following up a miss from the line with a 3-pointer from the top to cut it to 96-90 with 1:37 left.
Toronto guard Jarrett Jack stopped the run with a free throw and, after James made one more from the line, Turkoglu made a free throw and Calderon converted a 3-point play.
Magic 120, 76ers 106 - Dwight Howard had 21 points and 15 rebounds, Vince Carter scored 15 points, and new-look Orlando rolled over visiting Philadelphia in the season opener for both teams.
Ryan Anderson added 16 points, and Jason Williams had 15 points to highlight a deep Magic bench. Orlando went ahead by 23 points at the half, scored 100 through three quarters, and showed no signs of a Finals hangover after losing to the Los Angeles Lakers on the same floor in June.
Spurs 113, Hornets 96 - Tony Parker scored 17 points before leaving the game after a hard fall and Manu Ginobili scored 16 points as host San Antonio beat New Orleans.
Parker landed with a thud on his right side after slicing between fellow All-Star Chris Paul and Hilton Armstrong for a layup late in the third quarter. He lay scrunched up and wincing for more than a minute before walking back to the bench.
Hawks 120, Pacers 109 - Joe Johnson scored 25 points, Al Horford had 24, and host Atlanta pulled away in the fourth quarter for a season-opening victory over Indiana.