Malik Beasley had 20 points, including seven in the fourth quarter, as the Detroit Pistons held off the Toronto Raptors 99-95 on Friday in an NBA Cup game.