Texas Rangers' Elvis Andrus slides home ahead of the tag by Tampa Bay Rays catcher Bobby Wilson on a single by Ian Desmond during the fifth inning of a baseball game Friday, Aug. 19, 2016, in St. Petersburg, Fla.  (AP Photo/Chris O'Meara)
Texas Rangers' Elvis Andrus slides home ahead of the tag by Tampa Bay Rays catcher Bobby Wilson on a single by Ian Desmond during the fifth inning of a baseball game Friday, Aug. 19, 2016, in St. Petersburg, Fla. (AP Photo/Chris O'Meara)

Baltimore — Jose Altuve homered and had five RBIs, and the Houston Astros beat the Baltimore Orioles 15-8 on Friday night despite allowing four home runs in the first inning.

Altuve became the first Astro to have 20 homers and 20 steals in a season since Carlos Beltran in 2004. George Springer went 4 for 5 with a homer and the Astros also got long balls from Evan Gattis and Teoscar Hernandez in ending a five-game losing streak.

The Orioles became the first team in the modern era (since 1900) to open a game with four home runs before making an out. Adam Jones hit Collin McHugh’s first pitch into the seats in left field and Hyun Soo Kim singled before Manny Machado, Chris Davis and Mark Trumbo homered in succession.

Pedro Alvarez added a fifth-inning drive for the Orioles, They have 11 home runs in the first two games of this series. Baltimore didn’t have enough firepower in this one to overcome its poor pitching, which surrendered a season-high 15 runs and 18 hits.

Chris Devenski (2-4) allowed one hit in four innings for the Astros after McHugh yielded seven runs and nine hits in three innings. Ubaldo Jimenez (5-10) was the loser.

Indians 3, Blue Jays 2

Cleveland— Tyler Naquin hit a game-ending inside-the-park homer, sprinting around the bases to cap a two-run rally in the ninth inning as Cleveland stunned Toronto.

Toronto took a 2-1 lead into the ninth in a matchup of AL division leaders. Closer Roberto Osuna (2-2) retired the first batter, but Jose Ramirez tied it with a home run.

Naquin followed with a drive that hit the top of the right-field wall, above the leap of Michael Saunders. The ball caromed away at an angle and center fielder Melvin Upton Jr. gave chase as Naquin rounded second base. Upton finally retrieved the ball, but fell down as third base coach Mike Sarbaugh waved Naquin home. Upton flung it toward the infield, and Naquin stumbled home and scored with a head-first dive way ahead of second baseman Devon Travis’ relay.

Cleveland starter Trevor Bauer struck out a career-high 13 in eight innings. Russell Martin hit a two-run homer in the first for Toronto.

Rangers 6, Rays 2

St. Petersburg, Fla. — Adrian Beltre led off consecutive innings with home runs and Cole Hamels didn’t give up a hit until the sixth in Texas’ victory over Tampa Bay.

Beltre’s 20th and 21st home runs of the season gave him 434 for his career, moving him into a tie with Juan Gonzalez and Andruw Jones for 45th place. Beltre also had two singles.

Hamels had retired 14 straight, striking out seven, when Corey Dickerson singled with two outs in the sixth for Tampa Bay’s first hit. Steven Souza Jr.’s 12th home run got the Rays on the board in the eighth.

Athletics 8, White Sox 0

Chicago — Kendall Graveman faced one batter over the minimum while throwing a two-hitter, Khris Davis hit his 31st home run and the Oakland beat the White Sox to hand James Shields his 15th loss.

Graveman (9-8) allowed leadoff singles to Jose Abreu in the third and Adam Eaton in the seventh. Both were immediately doubled off first on line drives. Justin Morneau reached on an error by first baseman Yonder Alonso in the eighth.

Graveman struck out five and needed 97 pitches for his second complete game of the season.

Marlins 6, Pirates 5

Pittsburgh— Robert Andino hit a tiebreaking single in the top of the ninth inning, then Miami got Andrew McCutchen to ground into a game-ending double play with the bases loaded to hold off Pittsburgh in a matchup of NL wild-card contenders.

JT Realmuto, who homered in going 3 for 3, drew a leadoff walk in the Miami ninth from Neftali Feliz (4-1). Realmuto moved up on a sacrifice bunt and scored when Andino lined his single into left field.

Christian Yelich and Miguel Rojas also each had three hits and a homer as the Marlins won for just the third time in nine games.

Reds 9, Dodgers 2

Cincinnati — Joey Votto hit a three-run homer, relief pitcher Michael Lorenzen also hit a three-run shot, and Cincinnati beat Los Angeles to snap a nine-game losing streak against the Dodgers.

Tim Adleman pitched into and out of trouble in his first start since May 19 and added his first career hit and runs batted in as the Reds matched their season high with a fourth consecutive win and first against the Dodgers since Aug 13, 2015.

Cardinals 4, Phillies 3 (11)

Philadelphia— Randal Grichuk homered early, then hit an RBI double in the 11th inning that sent the Cardinals over Philadelphia for their fifth straight win.

Jedd Gyorko hit a tying, two-run homer with one out in the St. Louis ninth. The Cardinals tied a major league record with multiple home runs in nine consecutive games.