TORONTO -- DeMarre Carroll scored 21 points, Jonas Valanciunas had 15 points and 12 rebounds, and the Toronto Raptors beat the Miami Heat 96-92 in overtime on Thursday night to even the Eastern Conference semifinals at one game apiece.

Valanciunas had 11 points and seven rebounds in the fourth quarter and overtime as the Raptors avoided losing consecutive games for the first time this postseason.

Toronto made just 42 percent of its shots compared to Miami's 49.4 percent, but the Raptors survived.

More from FoxSports

"There's a lot of different ways to win a game," Raptors coach Dwane Casey said. "Fortunately our guys found a way."

DeMar DeRozan scored 20 points, Kyle Lowry had 18 and Terrence Ross 10 for Toronto, which battled back late in the fourth quarter to force the second overtime of the series, then shut the Heat down to start it.

Jonas finds DeMarre right before the buzzer for the #AssistOfTheNight https://t.co/b32SOPLI5X

— NBA (@NBA) May 6, 2016

"I didn't think we did a good job at all executing (in overtime)," Dwyane Wade said. "I thought our offense was poor. In a sense, we feel like we gave one up."

Goran Dragic scored 20, and Wade and Joe Johnson each had 17 for the Heat. Hassan Whiteside had 13 points and 13 rebounds, while Luol Deng had 12 points.

Game 3 is Saturday in Miami.

The Heat led 77-70 midway through the fourth, but back-to-back baskets by Valanciunas shaved the gap to 80-78 with 3:18 remaining. Ross tied it with a jumper at 2:01.

DeRozan missed a pair of free throws with 1:22 remaining but Valanciunas grabbed the rebound on the second and tipped it home to give Toronto an 82-80 lead.

Goran puts Miami up 2! @ESPNNBA #NBARapidReplay #RAPTORSvHEAT https://t.co/XH5xQA71zq

— NBA (@NBA) May 6, 2016

"That was big," Wade said. "If they get offensive rebounds, they're a tough team to beat."

After a missed shot by Wade, Lowry hit a pull-up jumper with 45 seconds left, giving the Raptors a four-point cushion.

Wade cut it to one with a 3 but Lowry replied with another jumper with 14.9 seconds to go, putting Toronto up 86-83. After a Miami timeout, Dragic tied with a 3 with 10.5 seconds left.

Lowry, whose halfcourt shot sent Game 1 to overtime, got the last attempt for the Raptors but couldn't hit the rim with a long 3-point attempt.

The Heat went cold in overtime, missing their first five field goal attempts, including three misses by Johnson. DeRozan and Valanciunas connected and Carroll made a pair at the line before Miami's first basket of overtime, a driving dunk by Deng with 23 seconds left.

Big performance by JV who finishes w/ 15p, 12r & 3s and is your @BioSteelSports Performer of the Game. #WeTheNorthhttps://t.co/NiiAVOPpIy

— Toronto Raptors (@Raptors) May 6, 2016

Miami matched a franchise postseason record with 11 turnovers in the first, leading to 14 Toronto points. Miami finished with 21 turnovers.

"If we don't turn the ball over 20-something times, we'll be fine," Wade said.

The Raptors led 48-41 at halftime.

TIP-INS

Heat: All five Miami starters scored in double figures. ... Dragic was left bloodied after being hit by DeRozan's elbow in the second. Dragic was called for a blocking foul on the play. He received three stitches on the inside of his lip and five on the outside during halftime, returning to start the second half. ... This was the fourth time the Heat made 11 turnovers in one quarter of a playoff game. They last did it in 1997 against Chicago.

Raptors: Toronto went 14 for 26 at the free throw line. ... Lowry had as many points in the first quarter (7) as he had in Toronto's OT loss in Game 1.