TORONTO — Chris Bosh had 24 points and a season-high 18 rebounds, Andrea Bargnani scored 27 points and the Toronto Raptors beat the Miami Heat 111-103 on Wednesday night.

Dwyane Wade had 35 points and 10 rebounds and former Raptors center Jermaine O'Neal scored 22 for Miami, which lost Michael Beasley to a right knee injury.

Beasley scored six of the Heat's first 13 points but hyperextended his right knee when he landed heavily after missing an alley-oop pass at 7:32 of the first. He lay under the basket clutching his knee and was tended to by trainers before limping to the locker room.

Beasley returned midway through the second, wearing a knee brace, but did not play in the second half.

Toronto led 100-91 with 4:11 left but Wade made a layup and Rafer Alston followed with a 3-pointer, making it 100-96 with 3:22 remaining. Calderon and Bosh scored for Toronto but a pair of free throws by Udonis Haslem and a three-point play by O'Neal made it 104-101 with 2:00 left

Hedo Turkoglu made two free throws and Wade had a breakaway layup but Toronto put it away when Jose Calderon made one of two from the line, then found Antoine Wright in the corner for a 3-pointer with 15 seconds left, making it 110-103

Amir Johnson and Marco Belinelli each scored 11 points for Toronto, with Sonny Weems adding 10 in his first career start.

Haslem scored 16 points and Alston had 10 as Miami lost its second straight.

Toronto rookie DeMar DeRozan (sprained right ankle) missed his first game of the season after starting the previous 45, and will not travel with the team to New York for Thursday night's game against the Knicks. Weems started in DeRozan's place.

Wade scored 14 points in the first and Miami took advantage of seven Toronto turnovers to lead 34-23 after one.

The Raptors took care of the ball and took the lead by outscoring the Heat 20-8 over the first six minutes of the second. O'Neal had 11 points in the quarter, seven in the 65 seconds, and Miami led 60-57 at the half.

Wade scored 10 points in the third but Bargnani got 14 for Toronto as the Raptors opened a seven-point lead. Dorrell Wright's 3-pointer at the buzzer cut it to 85-81 heading into the fourth.

Bosh is the only Raptors player to start all 46 games this season. … The Raptors have won 10 of 11 at home. … Toronto wore their blue and white Huskies throwback jerseys, the third of six games they'll wear them. … Maple Leafs F Colton Orr attended the game.