OKLAHOMA CITY (AP) - Kevin Durant scored 42 points, including 21 in the fourth quarter, and the Oklahoma City Thunder secured the No. 2 playoff seed in the Western Conference, rallying from 10-point fourth-quarter deficit to beat the Detroit Pistons 112-111 Wednesday night.
Oklahoma City (59-23) had lost two straight to put itself in the must-win situation in the regular-season finale to earn the No. 2 seed.
Durant rallied the Thunder while recording his 14th 40-point game of the season.
He drove for the go-ahead dunk with 16.5 seconds left, and after a scramble for a loose ball resulted in a jump ball in Detroit's end with 1.8 seconds left, he won a tip over Greg Monroe. Detroit's Brandon Jennings managed a 30-foot heave at the buzzer that banged off the rim.
The Thunder extended their winning streak over Detroit (29-53) to nine games, dating to December 2008.
Kentavious Caldwell-Pope scored a career-high 30 points for the Pistons (29-53), while Monroe had 22, Kyle Singler added 20 and Andre Drummond recorded his ninth straight double-double to end the season for Detroit, finishing with 22 points and 13 rebounds.
Russell Westbrook added 22 points for Oklahoma City, which will play Memphis in the first round of the playoffs.
For much of Wednesday, the Thunder looked and played like a tired team. Oklahoma City's late-season defensive issues were on full display, as the Pistons shot 50.6 percent from the field and Caldwell-Pope joined other lesser-known players such as Jodie Meeks (Los Angeles Lakers), Gerald Green (Phoenix Suns) and Tyreke Evans (New Orleans Pelicans) in enjoying a career night against the Thunder.
Oklahoma City trailed for most of the first half before taking a one-point lead twice in the third quarter. Detroit went on a 15-7 run and took an 87-79 lead on a basket by Jonas Jerebko with 5 seconds left in the quarter. Detroit led 94-84 with 10:13 left in the game after a basket by Monroe.
But Durant's offensive flurry cut into that gap and the Pistons didn't score a basket in the final 3:17 or at all after Brandon Jennings hit two of three free throws with 2:07 left.
On the Pistons' final possession, the ball found its way to Jerebko, but he lost the handle as Thunder players slapped at the ball and officials ended up calling a tie ball.
Caldwell-Pope hit four 3-pointers in the first half -- draining one over the outstretched arm of the 6-foot-10 Durant -- and eclipsed his previous career high of 15 points by the 5:27 mark of the second quarter. His next basket put the Pistons ahead 48-37 with 4:52 left in the first half and hushed the crowd at Chesapeake Energy Arena.
Durant, who was 2-of-8 from the field to that point, hit two free throws, then drained a 3-pointer to start a 17-7 run by Oklahoma City. Westbrook scored seven points in the final 2:41 and Durant drained an 18-foot jumper in the final second to pull the Thunder within 55-54.
Drummond set the Pistons' record for highest field-goal percentage in a season, finishing at 62.3 percent. Dennis Rodman had held the previous team record of 59.5 percent, set during the 1988-89 season. . Kendrick Perkins was called for a technical foul by official Tony Brothers with 8:01 left in the third quarter when he protested after picking up his fifth foul . The Thunder recorded its 130th straight regular-season sellout at Chesapeake Energy Arena, which seats 18,203 fans.