Dwyane Wade scored 19 points for the Heat, who shot 47.6 per cent from 3-point range (10 of 21) and 51 per cent from the field overall.
Chandler Parsons scored a career-high 25 points and Omer Asik had a career-best 19 points and 14 rebounds for the Rockets, who led 110-106 with 90 seconds left.
James went 3 for 4 from the free throw line over the next minute, then drove for the go-ahead layup with 19 seconds left.
Jeremy Lin shot an airball from 3-point range with 10 seconds left, Wade caught it and the Heat escaped with their sixth straight win over Houston.
CELTICS 101, BULLS 95
CHICAGO (AP) — Rajon Rondo had 20 points, nine rebounds and 10 assists to lead Boston over Chicago.
Rondo took advantage of Bulls point guard Nate Robinson for three quarters, helping the Celtics build a 12-point lead on 56 per cent shooting. He extended his streak of consecutive games with 10 or more assists to 31, the longest in the NBA since John Stockton had 37 straight from Feb. 27 to Nov. 29, 1989.
Brandon Bass led four other Celtics in double figures with 16 points as Boston held off a furious late Chicago rally to snap a five-game losing streak at the United Center. Kevin Garnett had 15 points.
Luol Deng led the Bulls with 26 points and 11 rebounds.
The Celtics became the first team to score 100 points against the Bulls since April 8 last season, ending a streak that had reached 15 straight games.
HAWKS 95, TRAIL BLAZERS 87
PORTLAND, Ore. (AP) — Josh Smith had 19 points and 11 rebounds, Kyle Korver added 16 points and Atlanta snapped a two-game skid with a win over Portland.
Al Horford added 15 points and 10 rebounds for Atlanta, which was playing the second game of a four-game West Coast swing after losing 89-76 to the Los Angeles Clippers on Sunday.
J.J. Hickson had 19 points and 18 rebounds, and Nicolas Batum scored 19 points to lead Portland, which dropped its fourth straight. Wesley Matthews had 17 points and made all 10 of his free throws.
Trail Blazers All-Star LaMarcus Aldridge finished with 14 points on 4-of-13 shooting. He added eight assists, but had just seven points in the first three quarters.
JAZZ 140, RAPTORS 133, 3OT
TORONTO (AP) — Paul Millsap scored seven of his 34 points in the third overtime, Al Jefferson had 24 points and 17 rebounds, and Utah beat Toronto for its first road win of the season.
The Jazz rallied after trailing by 11 in the fourth quarter, and no basket was bigger than Jefferson's 3-pointer with 2 seconds left in regulation, a shot that bounced around the rim before falling through. It was just the second 3-pointer of Jefferson's nine-year career. He came in 1 for 25 from 3-point range.
Mo Williams had 17 points and 14 assists, Randy Foye scored 20 points and Marvin Williams had 17 as the Jazz opened a four-game trip by avoiding their first 0-5 start away from home since 1987.
DeMar DeRozan matched his career high with 37 points, Jose Calderon had 20 points and 17 assists, and Amir Johnson fouled out with 11 points and 14 rebounds for the Raptors, who lost their fourth straight.
Toronto has dropped eight consecutive home games against Utah.
THUNDER 92, PISTONS 90
AUBURN HILLS, Mich. (AP) — Russell Westbrook scored a season-high 33 points and keyed a fourth-quarter comeback as Oklahoma City rallied to beat winless Detroit.
The loss left the Pistons with an 0-8 record, the worst start in franchise history. It was the fourth game in five nights for the Thunder, who improved to 6-2.
Westbrook, who also had 10 rebounds and four assists, contributed six points — all on free throws — to a 13-0 Thunder run to open the fourth quarter that turned a 73-62 deficit into a 75-73 lead with 8:11 left.
Kevin Durant, who hit a tough runner with 47.8 seconds remaining that gave Oklahoma City an 88-85 advantage, added 26 points and nine rebounds.
Rodney Stuckey led the Pistons with 19 points and Greg Monroe had 17.
BUCKS 105, 76ERS 96
PHILADELPHIA (AP) — Brandon Jennings scored 33 points and Monta Ellis had 18 to lead Milwaukee past Philadelphia.
The Bucks improved to 3-0 on the road for the first time since they won their first four in 2001-02. Mike Dunleavy added 13 points and Milwaukee shot around 60 per cent most of the game.
Jennings hit four 3-pointers, had four steals and was 5 of 5 from the free throw line.
Jrue Holiday had 25 points and a whopping eight turnovers for the 76ers, who were coming off their first 3-0 road trip since 2003. Jason Richardson scored 20 and the Sixers made 10 of 24 3-pointers.
Before the game, Philadelphia learned centre Andrew Bynum will miss at least five more weeks because of a bone bruise in his right knee and might not play until early January.
TIMBERWOLVES 90, MAVERICKS 82
DALLAS (AP) — Nikola Pekovic scored 20 points before leaving with an injury and the short-handed Minnesota Timberwolves beat Dallas.
Because of a rash of injuries, the Timberwolves dressed only 10 players. The 6-foot-11 Pekovic exited with 2:46 left in the third quarter with a sprained left ankle and didn't return.
Pekovic went 8 of 13 from the floor. Andrei Kirilenko and Alexey Shved each had 16 points for Minnesota.
Dallas coach Rick Carlisle was ejected after arguing a foul call with 5 minutes left. Assistant coach Jim O'Brien coached the team the rest of the way.
Darren Collison had 21 points and O.J. Mayo added 18 for the Mavericks, who lost their third straight.
SUNS 110, NUGGETS 100
PHOENIX (AP) — Goran Dragic scored 21 points, including 4-of-5 shooting on 3-pointers, to lead seven Phoenix players in double figures as the Suns snapped Denver's four-game winning streak.
Shannon Brown added 19 points, Michael Beasley 16 and Jared Dudley 15 for Phoenix. Markieff Morris scored 13 points and had a crucial steal down the stretch. Marcin Gortat and Luis Scola added 12 points apiece for the Suns, who finished the game with a 13-4 run.
Andre Iguodala scored 17 for Denver. JaVale McGee added 16, pretty much all of them on thundering dunks, and Danilo Gallinari scored 15 for the Nuggets. Kenneth Faried scored 14 on 6-of-7 shooting but didn't take a shot in the second half.
Dragic's 3-pointer from the top of the key put Phoenix ahead 100-96 with 3:14 to play.