AMERICAN LEAGUE

Red Sox 19, Baltimore 3

J.D. Martinez had three of the Red Sox's season-high 22 hits, including a three-run homer that brought his major-league-leading RBI total to 127, and host Boston beat Baltimore on Wednesday in the first game of a doubleheader that sent the Orioles to a franchise-record 112th loss.

The once-proud Orioles (45-112) had lost more than 100 games just once since moving to Baltimore in 1954, in 1988 when they lost their first 21 games en route to a 55-107 record. The previous franchise record of 111 losses was set by the 1939 St. Louis Browns. Baltimore dropped 61½ games behind Boston (107-51), which extended the franchise record wins it set Monday.

In the makeup of Tuesday night’s rainout, David Price (16-7) settled down after an early stumble in his final tuneup before the playoffs. He allowed three runs — all in the second inning — six hits and three walks, striking out six before leaving with a 10-3 lead after five.

Price is expected to start Game 2 of the AL Division Series against the New York Yankees or Oakland. Probable Game 1 starter Chris Sale was scheduled to pitch Wednesday’s second game.

Rafael Devers had four hits and six RBI, including two homers, and Mookie Betts had two hits to raise his major-league-best batting average to .346. Xander Bogaerts and Blake Swihart also homered for Boston.

Renato Nunez and Trey Mancini homered for Baltimore. Ryan Meisinger (2-1) was the loser.

Blue Jays 3, Astros 1

Randal Grichuk hit a two-run homer and rookie Reese McGuire added a solo shot as host Toronto beat Houston with only three hits. Grichuk connected off right-hander Chris Devenski in the first, his career-best 25th home run. McGuire led off the fifth with a blast to right, the first of his big-league career.

Joe Biagini (4-7) pitched 1⅓ innings for the win and Giles, the seventh Blue Jays pitcher, needed just five pitches to wrap it up in the ninth, earning his 25th save in 25 opportunities. Devenski (2-3) allowed two runs and one hit in two innings.

Devenski (2-3) allowed two runs and one hit in two innings.

NATIONAL LEAGUE

Brewers 2, Cardinals 1

Milwaukee its clinched its first playoff spot since 2011, ensuring at least a spot in the NL wild-card game when Jhoulys Chacin pitched five shutout innings to beat host St. Louis for a three-game sweep.

The Brewers (92-67) began the night a half-game behind the Chicago Cubs for first place in the NL Central and 3½ games ahead of Colorado for the top wild-card slot.

The Cardinals (87-71) entered a half-game behind the Rockies for the final wild-card berth. Both the Cubs and Rockies played later games.

Milwaukee now returns to Miller Park to take on the lowly Detroit Tigers in the three-game series starting Friday to end the regular season. The Cardinals travel to the Cubs for the three-game set.

Mets 3, Braves 0

Jacob deGrom was dominant in what likely was his final pitch for the NL Cy Young Award, throwing eight stellar innings for host New York and leaving with a major-league-best 1.70 ERA.

DeGrom (10-9) made his final regular-season start, striking out 10 and allowing just two singles against NL East champion Atlanta. He retired the final 20 hitters after allowing a single to Johan Camargo. DeGrom gave up no more than three runs in his last 29 starts to extend his own single-season record. The All-Star ace also matched the overall mark set by Jake Arrieta in 2015-16.

Seth Lugo threw a scoreless ninth for his third save.

Luke Jackson (1-2) was the loser. Atlanta had won six straight.

Nationals 9, Marlins 3 (7)

Bryce Harper was 0-for-4 with two strikeouts in the rain-shortened game that many expect was his last at Nationals Park as a Washington player.

Harper can become a free agent at season’s end. The storm arrived as Harper stood in the on-deck circle while the last out of the seventh was recorded.

Nationals rookie Victor Robles had a career-high four hits, including a three-run homer and a two-run double, and also stole a base. Brian Anderson homered for the Marlins.

Wander Suero (4-1) got the win with an inning of scoreless relief. Wei-Yin Chen (6-12) was the loser.

INTERLEAGUE

Royals 6, Reds 1

Rookie Heath Fillmyer struck out a career-high nine, Adalberto Mondesi tripled, stole two bases and scored twice, and Kansas City wrapped up its 2018 road schedule with a win over Cincinnati.

Whit Merrifield, who went into the game tied for the American League lead in hits and leading in stolen bases, extended his season-high hitting streak to 16 games with a third-inning single. He also stole two bases.

Alex Gordon tacked on a solo home run to help Kansas City to a third straight win and fourth in its last five games.

The only run Fillmyer allowed was Jose Peraza’s 14th homer in the first inning. Fillmyer (4-2) retired 11 straight batters in one stretch against a Cincinnati team that has scored three or fewer runs in 13 of its last 14 games.