Malik Beasley made a go-ahead technical free throw with 1.1 seconds left in overtime and the host Detroit Pistons escaped with a wild 123-121 victory over the Miami Heat in the NBA Cup opener for both teams on Tuesday night.Tyler Herro, who scored the last nine points of regulation, all on 3-pointers, to force overtime, gave the Heat a two-point lead on a bank shot with 1.8 seconds left in overtime. An alley-oop dunk by Jalen Duren off an inbounds pass Cade Cunningham tied the score.The Heat called a timeout they didn’t have, resulting in the technical for a 122-121 lead. Beasley then split two free throws after Miami was called for a take foul.Beasley and Cunningham finished with 21 points apiece. Cunningham also chipped in nine assists and seven rebounds, but was responsible for seven of the Pistons’ 19 turnovers. Jaden Ivey had 19 points, Tobias Harris added 18, and Isaiah Stewart finished with 13 points and 10 rebounds.Herro poured in 40 points. His 10 3-pointers tied a Heat record and are an NBA Cup single-game record. Bam Adebayo supplied 20 points and 12 rebounds.The Heat played their second consecutive game without Jimmy Butler, who has a sprained right ankle.Detroit scored the first 10 points of the game and were ahead 32-21 by the end of the quarter.The advantage grew to 18 when the Pistons scored the first seven points of the second quarter. The cushion didn’t last for long.