The first step came with victory No. 82 on Sept. 9. The next came two weeks later when a win over the Chicago Cubs assured a wild-card spot. The most thrilling yet lifted the team with the 26th-highest payroll in the majors ($73.6 million) into a showdown with baseball royalty.

The Reds, meanwhile, head into an offseason that could be eventful. Baker has led Cincinnati to the playoffs in three of the last four years but the Reds failed to advance each time. They fell to the San Francisco Giants in five games — after leading 2-0 — in the division series in 2012 and were swept in the same round by Philadelphia in 2010.

This time, they didn't even make it that far. Cincinnati spent most of the season as the third team in a three-way race with the Pirates and the Cardinals for the NL Central title. They'll end the year as the first one heading home.

"It's very difficult to come down to one game, especially the way we played," Baker said. "We got outplayed big time."

Cueto, who made three different trips to the disabled list this season with a strained lat, was pressed into service when projected starter Mat Latos discovered bone chips in his right (throwing) elbow.

On the surface, it seemed like an upgrade. It wasn't. The Pirates made it 3-0 on sacrifice fly in the third by Pedro Alvarez and Cueto was pulled when Starling Marte doubled with one out in the fourth. Marte sprinted home on local boy Neil Walker's double off reliever Sean Marshall and Walker scored on a fielder's choice by Byrd to make it 5-1.

When Martin hit a drive to left off Logan Ondrusek in the seventh, the party seemingly unthinkable for a team that lost 105 games in 2010 began. Martin's long ball marked only the second multihomer playoff game in team history. Bob Robertson hit three in Game 2 of the 1971 NLCS.

NOTES: Martin is the first catcher to homer for three different teams in the postseason. He previously connected for the Los Angeles Dodgers in 2008 and the New York Yankees in 2012 ... Liriano is the first Pittsburgh left-hander to win a playoff game since John Candelaria in Game 3 of the 1979 World Series ... The Reds have lost four straight playoff games and 11 of their last 13 ... Pittsburgh is the first home team to win since the new wild-card format was introduced last season ... The Pirates went 10-9 this year against St. Louis. ... Byrd is the oldest player to homer in his first postseason at-bat, according to STATS.