Carmelo Anthony said LeBron James can have his two-year free-agent contract that now looks like a genius financial investment in the wake of the NBA’s new multi-billion-dollar television package.

Anthony is at peace with what he did with the Knicks, signing for five years and $124 million. The new maximum contract for superstars could go up as much as $30 million for 2016 free agents such as Kevin Durant and James. But Anthony said he doesn’t want to go down the free-agent road again so soon, if ever.

“I never thought about it,” Anthony said after practice on Monday. “I didn’t want to go back and do what I did this summer [as a free agent]. There was stuff on the table [but there] wasn’t a two-year deal discussed.

Anthony appeared uncomfortable having to again discuss his decision not to go short-term, even though word was out the new TV package would be mammoth. It’s worth a reported $24 billion over nine years.

“I’m good, man,’’ Anthony said. “Five years. I’m good. I don’t want to speak on a two-year deal right now. I don’t even know why I’m sitting here talking about a two-year deal. I’m good. The organization is good. Everybody is in a good place.”

This wasn’t the first time Anthony discussed the decision not to go for the LeBron contract. At September’s Bloomberg business summit, Anthony, indicating the free-agent mayhem wasn’t all it was cracked up to be, said, “I plan on ending my career here so it wasn’t for me to go out there and try to strike a two-year deal and then have to go through this situation in two years.

“I’m not doing that ever again. I would never do that again. I would advise no one to ever do that. I experienced it and it’s behind me.”

Anthony already took less than the maximum allowable. He could have made $129.4 million in a five-year package, but took nearly $6 million less to give the Knicks a little more cap space in 2015 and 2016.

The Knicks will need all of that cap space in 2015. Commissioner Adam Silver, contrary to speculation, said the cap next summer will not bloat because of the landmark TV agreement. The 2016 cap could go up significantly, however, perhaps by $10 million.

That would help the Knicks tremendously as there’s no assurance they will be able to sign a marquee free agent in 2015, though center Marc Gasol is a priority. Durant would be a great consolation prize in 2016.

“That’s a big deal,” Anthony said of the ESPN/TNT investment. “Congratulations to Adam Silver and NBA for making that deal happen. The cap space, it opens it up tremendously. I don’t know what the numbers are. It gives teams room now to make moves [in 2016] and go from there. I’m pretty sure the front office is looking forward to it — all front offices.”

Anthony agreed to less-than-the-max raise this summer in order to give team president Phil Jackson more money to work with — $1.4 million more in cap space.

“We discussed it internally about what the opportunity and options of what that $6 million can do,” Anthony said. “We did it. We moved on. Both parties were happy. It will help us out in the future. I was happy to do it when the option came on the table. It’s something I thought about extremely hard — a lot of nights. We figured it out.’’

Anthony didn’t want to speak for James and why he signed for only two years with the Cavaliers. He also has an opt-out next summer and Anthony has a dream to unite with him.

“I don’t know what went into his decision,’’ Anthony said. “I really don’t. We all knew about the TV deal. Everybody who knows a little bit of the business of basketball knew that was coming. I don’t know if it has to do with the TV deal. We play them in a couple of weeks [in Cleveland’s home opener]. Maybe you should ask him.’’

Anthony knows the Knicks still need to use their cap space wisely to become a serious title contender. On Saturday, Anthony, referring to whether he has a lot of help, said, “For this season right now we have what we have. We’re going to deal with that. That was a big discussion with me and Phil talking about — that was one of my things [adding help].”