Miami are without star wing Jimmy Butler and starter Terry Rozier through injury and, after Sunday’s 114-94 defeat, many thought the Celtics would wrap up a four-game sweep.
“We understood how many missed opportunities we had hesitating to shoot the threes in game one, and we had the mentality coming in of just let it fly,” said Caleb Martin, who added 21 points.
“We were hungry. The only way you beat a team like that is to come in and try to play on the same level.”
Boston’s Jaylen Brown scored a game-high 33 points while Jayson Tatum finished with 28 points, but the Celtics were limited to 12 three-pointers from 32 attempts.
The best-of-seven series moves to Miami for the third game on Saturday.
Elsewhere on Thursday, the Oklahoma City Thunder claimed a commanding 2-0 lead in their Western Conference play-off series against the New Orleans Pelicans.
Shai Gilgeous-Alexander produced his best-ever scoring total in a post-season game, scoring 33 points as the Thunder cruised to an emphatic 124-92 victory.
Game three is on Saturday in New Orleans.