Kevin Durant scored 42 points, including 21 in the fourth quarter, and the Thunder secured the No. 2 playoff seed in the Western Conference, rallying from 10-point fourth-quarter deficit to beat the 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.
He drove for the go-ahead dunk with 16.5 seconds left and won a tip over Greg Monroe with 1.8 seconds to go after a scramble for a loose ball resulted in a jump ball in Detroit's end.
Kentavious Caldwell-Pope scored 30 points for the Pistons (29-53), while Greg 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.