BALTIMORE — Down by three runs in the eighth inning, the Baltimore Orioles had every reason to believe they could rally against the Tigers.

Not only because the Orioles are capable of scoring in bunches, but more importantly, they were going up against Detroit’s leaky bullpen.

Delmon Young drove in three runs with a pinch-hit double, and Baltimore used a four-run eighth to pull out a 7-6 victory Friday for a 2-0 lead in the best-of-five AL Division Series.

Baltimore will try for a sweep in Game 3 Sunday at Detroit, when Miguel Gonzalez starts against the Tigers’ third straight Cy Young winner, David Price.

“It’s huge going into Detroit up 2-0,” said J.J. Hardy, who scored the go-ahead run with a sweeping slide. “We’ve got to go over there and do our job.”

A day after the Orioles battered Detroit relievers during an eight-run eighth that produced a 12-3 win, they pushed the Tigers to the brink of elimination with an uprising against the beleaguered duo of Joba Chamberlain and Joakim Soria — the primary victims on Thursday night.

It was 6-3 with one out in the eighth when Chamberlain hit Adam Jones with a pitch and gave up a single to Nelson Cruz. Steve Pearce singled in a run, and the towel-waving, orange-clad fans among the sellout crowd of 48,058 sensed another comeback win by a team that won 10 games during the regular season during its final at-bat.

Soria entered and walked Hardy to load the bases for Young, who lined the first pitch into the left-field corner.

“We did it yesterday, we’ve been doing it all year against teams in our own division,” Young said. “So any time we have an opportunity and get guys on, we think we can win.”

Young went 10 for 20 as a pinch-hitter during the regular season. He also was the AL championship series MVP in 2012 — for the Tigers — when they swept the Yankees.

“It’s very hard to sit around and not know where the consistent at-bats are coming,” Orioles manager Buck Showalter said. “He has done the things that you need to do to give yourself a chance to be successful.”

In the top of the eighth, baserunning was a key point. Miguel Cabrera was thrown out at the plate when he tried to score right behind Torii Hunter on Victor Martinez’s double with no outs.

“I was watching the play develop and hoping they both would make it,” Tigers manager Brad Ausmus said.

Zach Britton got three straight outs for the save.

Soria wound up with the loss, but Chamberlain took the blame.

“This one is on me. There’s no getting around it,” he said. “Obviously, if I don’t put us in that situation, then we’re having a different conversation.”

The defeat left Detroit’s bid to reach the ALCS for a fourth straight year in serious jeopardy. The Tigers wasted home runs by J.D. Martinez and Nick Castellanos, along with a solid start by Justin Verlander.

“We’re 0-2. We understand it,” Ausmus said. “It doesn’t really affect us playing Game 3. If you win Game 3, you go on to Game 4.”