PITTSBURGH (AP) -- Ahead in the count 2-0 with the game tied in the ninth inning, Todd Frazier figured there was only one type of pitch he was going to see.
"I know he didn't want to walk me and put a guy on base," Frazier said. "I was looking to get a fastball I could handle and, fortunately, I was able to connect."
Frazier's leadoff homer lifted Cincinnati to a 6-5 victory over the Pittsburgh Pirates on Tuesday night after the Reds' bullpen blew a three-run lead.
Frazier's team-leading 16th home run to center field came off closer Jason Grilli (0-2) and gave the Reds their fifth win in six games. Cincinnati (34-35) also got within one game of .500 on its ninth try.
"You can't fall behind the first guy you face, especially in a tie ballgame," Grilli said. "He dives over the plate. ... It just didn't work out."
Frazier leads NL third basemen in homers, extra-base hits (31) and slugging percentage (.524).
"He's very confident now that he can be a major league player," Cincinnati manager Bryan Price said of Frazier, who is in his fourth season. "He's been able to put home runs, RBIs, run production into one package."
Billy Hamilton had three hits and two stolen bases for the Reds, while Joey Votto had two hits and three RBIs. Frazier, Brandon Phillips and Ryan Ludwick added two hits apiece.
Hamilton is 8 for 13 in his last three games. Cincinnati is 5-2 and averaging 5.3 runs per game since Votto was activated from the disabled list after missing three weeks with a quadriceps strain.
Logan Ondrusek (2-2) got four outs for the win. Aroldis Chapman pitched a scoreless ninth for his 12th save, getting Clint Barmes to fly out to the left-field fence with two runners on to end the game.
"It was an interesting game in a lot of ways," Price said. "Both teams had their moments and we had to have some good things happen to win the game. It would have been nice if it were a little easier on the stomach."
Price's stomach was certainly churning when left fielder Chris Heisey, a late-inning defensive replacement for Ludwick, had to race to the fence to catch Barmes' drive.
"It carried farther than I thought," Heisey said. "Fortunately, it stayed in the park."
Josh Harrison matched a career high with four hits for the Pirates. He drove in two runs.
Starling Marte, Ike Davis and Jordy Mercer added two hits apiece.
Andrew McCutchen extended his hitting streak to 12 games but came up short of becoming the first Pittsburgh player to have multiple hits in nine straight games since Rennie Stennett in 1971. Gregory Polanco became the first Pirates player to have a hit in each of the first seven games of his career since Hall of Famer Roberto Clemente in 1955.
The Pirates used a three-run seventh inning to tie the score at 5 on RBI singles by Davis, Russell Martin and Harrison.
Cincinnati starter Johnny Cueto's hard luck continued as he gave up two runs in six innings of a no-decision. Cueto scattered seven hits and four walks, but the bullpen failed to hold a three-run lead for him. Despite a sparkling 1.92 ERA, Cueto is 6-5 through 15 starts.
In two starts against the Pirates in April, he allowed one run and six hits in 18 innings.
Pittsburgh's Brandon Cumpton gave up three runs and eight hits in six innings after winning his previous two starts.
YANKEES 3, BLUE JAYS 1
NEW YORK -- Masahiro Tanaka gave up a home run to Jose Reyes on the first pitch of the game, then earned his major league-high 11th victory as the New York Yankees beat Toronto 3-1 Tuesday night for their 14th straight home win over the Blue Jays.
Brett Gardner hit a two-run homer off the right-field foul pole and the Yankees sent the AL East leaders to their seventh loss in 10 games.
Tanaka (11-1) struck out 10 in six innings and left with an AL-best 1.99 ERA. The Japanese rookie has made 14 starts this season -- he's gone at least six innings in every outing and never permitted more than three earned runs.
Dellin Betances worked two innings and David Robertson closed for his 17th save.
Pitching about 50 miles from his Long Island hometown, Blue Jays rookie Marcus Stroman (3-2) threw 98 pitches in 3 2/3 innings on a sticky night.
RED SOX 2, TWINS 1
BOSTON -- Brock Holt scored both Boston runs, Jon Lester weathered a shaky start and pitched six-plus strong innings as the Red Sox held off Minnesota.
Lester (8-7) has a winning record for the first time this season. The Red Sox have won two straight and four of six.
After needing 33 pitches to get out of the first inning on a hot, muggy night at Fenway Park, Lester settled down and took a shutout into the sixth. He left with one out in the seventh after striking out six and holding the Twins to one run, four hits and a walk.
Edward Mujica pitched the ninth and earned his second save.
Phil Hughes (7-3) took the loss for the Twins, who have dropped four straight.
PHILLIES 5, BRAVES 2
ATLANTA -- Ryan Howard homered and Kyle Kendrick won consecutive starts for the first time in 11 months for Philadelphia.
The Phillies, winners of two straight and six of eight, got a solid start from Kendrick (3-6), who had gone 2-11 in his previous 20 starts since last Aug. 11. Kendrick allowed six hits and two runs with one walk and six strikeouts in seven innings.
Atlanta has lost seven of 11 and 13 of 21.
Ervin Santana (5-4) continued to struggle, giving up eight hits and four runs with three walks in six innings. Santana, who struck out five, is 1-4 with a 6.17 ERA in his last seven starts.
BREWERS 7, DIAMONDBACKS 5
PHOENIX -- Jonathan Lucroy homered twice, including a grand slam in an eventful seventh inning, to lead Milwaukee past Arizona.
Lucroy's slam to center came on Brad Ziegler's first delivery after Arizona reliever Evan Marshall was ejected for hitting Ryan Braun with a pitch.
Marshall (2-2) took the loss, facing three batters without getting an out after relieving starter Mike Bolsinger, who was called up from Triple-A Reno earlier in the day.
Lucroy had a solo homer in the sixth. Aramis Ramirez also hit a solo shot for the Brewers.
Kyle Lohse (8-2), who had hit three batters all season, plunked two in his six innings, apparently leading to retaliation by Marshall. Lohse allowed four runs, three earned, and six hits.
MARINERS 6, PADRES 1
SEATTLE -- Robinson Cano hit a two-run homer and Jesus Montero got his first big league homer in more than a year to help Seattle sweep a two-game set with San Diego.
Roenis Elias (6-5) allowed three hits and struck out six without a walk in seven strong innings. Dominic Leone and Danny Farquhar each pitched an inning in relief.
Cano's fourth home run of the season gave the Mariners a 4-1 lead in the fifth and was enough to chase San Diego starter Eric Stults after the inning ended.
Stults (2-9) allowed four runs, six hits and a walk.
MARLINS 6, CUBS 5
MIAMI -- Garrett Jones hit a three-run homer in the seventh inning and Miami rallied to beat Chicago.
Adeiny Hechavarria started the Marlins' seventh with a bunt single for his fourth hit. Rafael Furcal had a two-out, two-run single in the fourth for his first RBIs since 2012.
Hard-luck Cubs starter Jeff Samardzija allowed three runs, two earned, in six innings but was again denied a victory. The Cubs are 4-11 when he starts even though his ERA is 2.78.
Luis Valbuena's RBI double in the seventh gave Chicago a 4-3 lead, but Miami rallied against Brian Schlitter (2-2).
Marlins rookie reliever Sam Dyson (1-0) pitched 1 1/3 scoreless innings for his first career win.
ORIOLES 7, RAYS 5
ST. PETERSBURG, Fla. -- Chris Davis hit a replay-delayed grand slam to lead Baltimore past Tampa Bay.
Davis was awarded a slam off Erik Bedard (3-5) during a five-run third-inning after a video review showed his drive struck the foul pole. He reached second base on an opposite-field shot down the left-field line. The review that lasted 1 minute, 18 seconds revealed the ball hit the pole a few feet above the wall, and Davis was given a home run.
The Orioles also got a two-run homer from Steve Pearce.
Sean Rodriguez and Desmond Jennings homered for Tampa Bay, which is 5-16 in its last 21 games.
The Rays pulled within 5-2 in the bottom of the third when Rodriguez and Jennings hit consecutive solo homers off Miguel Gonzalez (4-4).
NATIONALS 6, ASTROS 5
WASHINGTON -- Anthony Rendon doubled twice and drove in three runs, and Washington opened a six-game homestand with a win over Houston.
Ryan Zimmerman added two doubles and two RBIs as the Nationals snapped a four-game losing streak.
Tanner Roark (6-4) pitched five innings in winning his third straight start. Rafael Soriano worked the ninth for his 14th save.
Houston's Jose Altuve returned to the lineup, going 4-for-5 with two doubles and two RBIs. He was limited to one pinch-hitting appearance in the last three games after being hit on the right hand by a pitch.
Dallas Keuchel (8-4) came in 6-1 with a 1.33 ERA over his last seven starts, but struggled with his command.
DODGERS 4, ROCKIES 2
LOS ANGELES -- Hanley Ramirez homered before leaving with a hand injury, and Zack Greinke pitched Los Angeles to a win over Colorado.
Matt Kemp also went deep and Carlos Triunfel hit his first major league home run after replacing Ramirez.
Greinke (9-3) gave up a run and three hits with five strikeouts in six innings, and tied St. Louis' Adam Wainwright and Cincinnati's Alfredo Simon for the NL lead in wins.
Brian Wilson pitched a scoreless eighth and Kenley Jansen got three outs for his 20th save.
X-rays on Ramirez's right hand were negative.
Jhoulys Chacin (1-5) gave up three runs, seven hits and three walks in six innings for the Rockies.
WHITE SOX 8, GIANTS 2
CHICAGO -- Gordon Beckham and Dayan Viciedo hit two-run home runs, John Danks pitched effectively into the seventh inning and the White Sox snapped a four-game losing streak.
The slumping White Sox had managed a total of six runs during their skid.
Viciedo, who was just 2-for-23 on the homestand coming in, went 2-for-4. His fifth-inning blast ended a stretch of 51 at-bats without an RBI.
Danks (6-5) settled down after a somewhat slow start and gave up two runs -- one earned -- and five hits in 6 1/3 innings. In his last five starts, the left-hander is 3-1 with a 1.51 ERA.
Hunter Pence went 2 for 4 with a home run for the Giants, who have dropped four straight and seven of eight. Giants starter Matt Cain (1-5) allowed eight runs -- seven earned -- and 10 hits in five innings.
ATHLETICS 10, RANGERS 6
OAKLAND, Calif. -- Derek Norris homered and drove in five runs, Stephen Vogt was 3 for 3 with two RBIs and Oakland held off Texas for its third win in four games.
Tommy Milone (5-3) won his fifth consecutive decision, matching his career-best, for the A's. Milone gave up three runs and five hits over 5 2/3 innings in improving to 5-0 over his last eight starts. He walked one and struck out three.
Yu Darvish (7-3) lost his eighth straight to the A's and the Rangers lost for just the second time in six games. Darvish allowed seven runs -- four earned -- and eight hits over 5-plus innings. He walked five and struck out eight, including Brandon Moss in the first for career strikeout 600.
Roughned Odor hit a home run, tripled and drove in three runs for the Rangers.