Bob Costas’ legendary career at NBC is now officially over.

“It’s all settled quietly and happily for all concerned,” Costas told The Post.

Costas, 66, will continue on the MLB Network, where he is set to be a big part of the Baseball Hall of Fame inductee announcement in the next week. He also will call about 20 games on play-by-play for MLBN. Plus, he is exploring doing a sports/news interview-style show.

“If I do anything else, it will be a hybrid of my HBO show and ‘Later,’” Costas said.

The Post reported in late August that NBC and Costas were discussing how to settle the final three years on his multimillion-dollar contract. Costas had triggered a so-called “Brokaw clause” in 2012, which made him the emeritus of NBC Sports.

In recent years, the two sides struggled to find roles that Costas felt passionate about and that fit into NBC’s current properties. Baseball has always been Costas’ No. 1 sport, while his feelings for the NFL have waned.

Costas’ exact payout is unknown. When asked for specifics, Costas said the final finances of the settlement were reconciled “more than fairly.” The agreement was made late last year, but NBC and Costas decided to keep the parting quiet.

An NBC spokesman confirmed Costas is no longer with the network, but declined to go into details.

The end had been near for a year, after Costas was not part of NBC’s Super Bowl coverage last year following his outspoken comments about the impact of football on players’ brains. On the Olympics, where Costas had been the longtime host, he decided to relinquish the reins to Mike Tirico. Tirico has stepped into Costas’ role as the face of NBC Sports with his work on the Olympics and NFL studio.

Tirico is the successor to Al Michaels in the “Sunday Night Football” booth, though Michaels recently reiterated to The Post’s Justin Terranova that he has no plans to step aside anytime soon.

Costas ends his broadcast career having done basically everything, calling or being the main host on the Olympics, the Super Bowl, the World Series, the NBA Finals and the Triple Crown. He entered the broadcasters’ wing of the Baseball Hall of Fame last August. He will still be on MLB Network, and there could be more, but he is going to be choosy.

“I have some possibilities, but I have to decide what I want to do,” Costas said.

Quick Click: Jay Horwitz, the longtime Mets PR man, has his own podcast. “Amazin’ Mets Alumni Podcast” catches up with former Mets like Ed Kranepool, John Franco and Turk Wendell with more big names in the on-deck circle. Horwitz, who stepped down from PR to run Mets’ alumni last season, was on the road with the team for nearly four decades, so he has some stories to tell, especially some from behind the scenes. He has a unique personality, and these are fun trips down memory lane.