Dwyane Wade added 24 points and Chris Bosh had 22 for the Heat, who squandered a 19-point third quarter lead and rallied from a two-point deficit with eight unanswered points late in the fourth quarter.
Kyrie Irving scored 19 points for the Cavaliers, who played the second half without coach Mike Brown. He was ejected late in the second quarter after he went onto the court looking for a foul on Shane Battier's block of Alonzo Gee's layup.
Bosh had a season-high 12 rebounds and James was one rebound and assist short of a triple-double.
The Portland Trail Blazers beat the Philadelphia 76ers 139-105 with LaMarcus Aldridge contributing 20 points and 16 rebounds and Nicolas Batum adding 17 points.
Portland set a franchise record for three-pointers with 21 against the sliding Philadelphia.
The Los Angeles Clippers won 113-97 over the Washington Wizards with 38 points and 12 assists from Chris Paul.
Kobe Bryant scored a season-high 21 points as the Los Angeles Lakers defeated the Charlotte Bobcats 88-85 for a first win since Bryant returned from a torn Achilles tendon four games ago.
Carmelo Anthony scored 35 points and Andrea Bargnani added 23 as the New York Knicks pulled away in the fourth quarter to beat the Atlanta Hawks 111-106.
The Toronto Raptors defeated the Chicago Bulls 99-77 with Kyle Lowry scoring 16 points and Jonas Valanciunas adding 15 points and 11 rebounds.
The Dallas Mavericks triumphed 106-93 over the Milwaukee Bucks and the San Antonio Spurs defeated the Utah Jazz 100-84.