Triple Crown candidate Miguel Cabrera was robbed of a tie-breaking homer in the fifth inning by Alex Gordon's catch above the left-field wall. Detroit, which started the day tied with the Chicago White Sox atop the AL Central for the first time since Sept. 2, found a way to break through the eighth, though.
Delmon Young hit an infield single with one out in the eighth off Kelvin Herrera (4-3) and was replaced by Kelly, who stole second base and took third on Dirks' single.
Alex Avila hit a two-run homer and Austin Jackson had a solo shot in the fourth inning to tie the game.
Luis Marte got two outs in the fifth and Al Alburquerque gave up only one hit over 2 1-3 innings. Joaquin Benoit (4-3) allowed one hit in the eighth. Jose Valverde closed the game for his 32nd save in 37 chances.
ORIOLES 12, BLUE JAYS 2
BALTIMORE (AP) — Chris Davis and Manny Machado each connected twice and the Baltimore Orioles tied a team record with seven home runs and stayed within 1 1/2 games of the AL East lead.
The Orioles ended a two-game losing skid against the Blue Jays and remained close to the division-leading New York Yankees, who won 8-2 in Minnesota.
Nate McLouth hit a leadoff shot in the first inning and Jim Thome and Mark Reynolds also homered. Baltimore has hit seven home runs three times, most recently on Aug. 26, 1985.
Davis finished with a career-high five RBIs.
Davis' three-run drive gave the Orioles a five-run inning and finished Carlos Villanueva (7-7).
Miguel Gonzalez (8-4) allowed two runs and five hits in seven innings. He allowed Edwin Encarnacion's 42nd home run with two outs in the top of the first.
INDIANS 6, WHITE SOX 4
CHICAGO (AP) — The slumping Chicago White Sox fell out of the AL Central lead for the first time in two months, walking 12 batters in a loss to Cleveland.
Chicago, which has lost seven of eight, had been in sole possession or tied at the top every day since July 24. But Detroit moved ahead by a game, beating Kansas City 5-4 with a week left in the regular season.
The White Sox have lost 7 of their last 8 and have seven games remaining — four at home against Tampa Bay and three at Cleveland next week. They'll need to regroup in a hurry.
Shin-Soo Choo had a go-ahead RBI grounder in the seventh off Matt Thornton (4-9) and Vinny Rottino hit his first homer for Cleveland in the eighth off Brett Myers. The Indians — who are 21-50 since the All-Star break — won two of three at U.S. Cellular Field.
Tony Sipp (1-2) pitched one-third of an inning for the win and Chris Perez finished in the ninth for his 38th save in 42 chances. He issued the Indians' sixth walk of the game and after a throwing error by shortstop Brent Lillibridge, he retired Paul Konerko on a fly to shallow left to end it.
RAYS 4, RED SOX 2
BOSTON (AP) — Carlos Pena and Ben Francisco hit back-to-back, tape-measure homers in the fifth inning on Wednesday night to lead the Tampa Bay Rays to their seventh consecutive victory, 4-2 over the Boston Red Sox.
The Rays remained 3 1-2 games behind Baltimore for second place in the AL East. Tampa Bay began the day three games behind Oakland for the second wild-card spot.
It was the final home game of the season for the Red Sox, and perhaps the last at Fenway Park for Boston manager Bobby Valentine. Hired to inspire a fractious clubhouse after the team went 7-20 last September under Terry Francona, Valentine instead presided over what could be the worst Red Sox team since 1965.
Alex Cobb (10-9) allowed one run on three hits and a walk, striking out five in five innings as the Rays matched their longest winning streak of the season. Fernando Rodney pitched the ninth for his 45th save in 47 chances.
Jon Lester (9-14) gave up three runs on four hits and a walk, striking out five in six innings. He didn't allow a hit until Jeff Keppinger singled to left with one out in the fifth, then he gave up back-to-back home runs.
YANKEES 8, TWINS 2
MINNEAPOLIS (AP) — CC Sabathia struck out 10 batters over eight innings and New York beat remained 1 1/2 games ahead of Baltimore in the AL East.
The Orioles beat Toronto 12-2 on Wednesday night. The Yankees visit the Blue Jays for four games starting Thursday. Baltimore, after an off day, plays Boston at home this weekend.
Sabathia (14-6) threw 89 of his 118 pitches for strikes. Robinson Cano hit a two-run double and Curtis Granderson added a two-run triple during a six-run third inning against Brian Duensing (4-11), and Sabathia took care of the rest. The burly lefty gave up six hits, two runs and one walk.
ANGELS 4, MARINERS 3
Torii Hunter's RBI singles tied it in the seventh inning and ended it in the ninth, and the Los Angeles Angels rallied to keep pace in the AL wild-card race with their fifth consecutive victory.
Erick Aybar had an early two-run double before Hunter ended it for the Angels (86-69), who remained two games behind Oakland (88-67) after the other three teams in the AL wild-card race all won earlier in the day.
Pinch hitter Maicer Izturis opened the ninth with a single off Stephen Pryor (3-1) and advanced to third on a wild pitch and Peter Bourjos' bunt. Seattle walked rookie Mike Trout to face Hunter, who coolly stroked a single to centre.
Ernesto Frieri (4-2) pitched the ninth for the Angels.Suggest a correction