Ray Allen added 14 points for Miami, which lost at Philadelphia on Oct. 30 and was beaten 101-100 at Brooklyn on Nov. 1.
James also had a season-high eight rebounds and eight assists as Miami topped 100 points for the fifth consecutive game, extending its team-record run to begin the season.
With a putback dunk at 2:31 of the first quarter, James became the fifth player in NBA history to score 10 points or more in 500 consecutive games.
A four-time MVP, James joined Kareem Abdul-Jabbar (with streaks of 787 and 508 games), Michael Jordan (866), Karl Malone (575) and Moses Malone (526) as the only players to accomplish the feat.
It was the 162nd time during the streak that James has reached 10 points in the opening quarter.
James has reached double figures in every game since being held to eight points at Milwaukee on Jan. 5, 2007. He has more regular-season games of scoring at least 50 points (nine) than nights where he’s scored less than 10 (eight). Factor playoff games into the mix, and he’s reached double figures 898 times in 907 career games.
Leading 78-74, Miami took control by opening the fourth with a 12-0 run as Toronto went scoreless for the first 4:28, a drought that ended when Tyler Hansbrough converted a pair of free throws.
DeMar DeRozan led the Raptors with 21 points while Jonas Valanciunas had 18. Rudy Gay had 13 points and 10 rebounds for his second consecutive double-double.
• Chris Bosh was unavailable for Miami’s game against the Raptors after the birth of his daughter, Dylan Skye Bosh.
Bosh, who spent the first seven seasons of his career with the Raptors, missed practice Monday and stayed behind in South Florida when the team traveled to Toronto.
Bosh is expected to return when the Heat play host to the Los Angeles Clippers on Thursday.
PACERS: Paul George scored 31 points, and Indiana remained the league’s only unbeaten team with a 99-91 victory over the Detroit Pistons on Tuesday.
The Pacers have matched their best start in franchise history. They are 4-0 for the first time since the 2004-05 season.
BUCKS: Michael Redd, a former All-Star guard who became the fourth-leading scorer in team history in a career hampered by injuries, will retire in Milwaukee today.
The team announced Redd’s decision Tuesday and said he will make a formal announcement when Milwaukee hosts Cleveland.
Redd was a second-round pick out of Ohio State in 2000, 43rd overall, and he played 11 of his 12 seasons in Milwaukee. Two separate injuries to his left knee cost him large chunks of three straight seasons with the Bucks.
He last played for Phoenix in 2011-12.
Redd finishes his NBA career with 11,972 points (11,554 of them with Milwaukee) and a .447 percent shooter, .380 from 3-point range. For Milwaukee, he averaged 20.0 points, 4.0 rebounds and 2.3 assists per game.
He was a reserve on the 2003 All-Star team, reached the playoffs three times with the Bucks. Redd was also on the gold medal-winning U.S. team at the 2008 Beijing Olympics.
Redd tore ligaments in his left knee in January 2009, then did it again in January 2010.