David Pastrnak had an assist for Boston after missing two games because of a lower-body injury.
Andrew Copp scored twice for the Red Wings (10-16-3), who have lost four in a row and 11 of their past 14 games (3-11-0). John Gibson made 15 saves.
Copp gave Detroit a 1- lead with a power-play goal at 6:48 of the first period. Swayman made the initial save on Moritz Seider’s shot from the point, but Copp poked it five-hole. The goal stood after Bruins coach Marco Sturm challenged for goalie interference.
Hagans tied it 1-1 on a power play at 10:35. Peterka made a centering pass from the corner and Hagens knocked the bouncing puck between Gibson’s pads.
Casey Mittelstadt put Boston in front 2-1 at 15:49, finishing a partial 2-on-1 with Pastrnak.
Geekie’ extended the lead to 3-1 at 4:04 of the second period. His one-timer from the left circle ricocheted off Gibson’s left pad and slipped five-hole.
Lohrei made it 4-1at 10:49, beating a screened Gibson high glove with a wrist shot from the high slot just seven seconds after a Bruins power play expired.
Geekie’s second goal at 2:12 of the third period pushed it to 5-1, a one-timer from the left circle that beat Gibson short side after a cross-ice pass from Will Borgen.
Detroit to cut it to 5-3 on goals by Keegan Kolesar (8:26) and Copp (9:48).
Minten scored an empty-net goal at 18:27 for the 6-3 final.