Carmelo Anthony and Amar’e Stoudemire have not grown into the perfect tandem, but Anthony has grown to love Stoudemire for his sacrifices.

One day after coach Mike Woodson revealed Stoudemire is on a 30-minute cap the rest of the season, Anthony saluted the Knicks $100 million backup power forward for never once complaining or balking at Knicks management’s wishes. Stoudemire doesn’t start, doesn’t finish and doesn’t play 31 minutes.

“I said it from Day 1 — for a guy like that to accept this role, you got to take your hat off to him,’’ said Anthony, whose Knicks host the Warriors tonight. “A guy who’s been a starter for a long time, All-Star in this league, accomplished so much in the league, to have the injuries he’s had, and have to take that step back, I imagine it was tough for him to do that. We respect him for that. We got his back.’’

Stoudemire said yesterday he was “OK’’ with the decision, even though his new low-post game has become a weapon. He is shooting 56.9 percent from the field, with speculation a role expansion was in order, particularly in the playoffs. But Stoudemire trusts the Knicks’ medical staff, which made the decision along with general manager Glen Grunwald.

“I have no problem with that, 30 minutes,’’ Stoudemire said. “I could be very productive in 30 minutes. That’s my motto. Be productive, aggressive and efficient in 30 minutes. I’m looking forward to it. Thirty minutes is OK with me. They understand what it takes to be successful. I’m going off their call.’’

Woodson said yesterday the medical staff arrived at the idea as the Knicks try to protect their uninsured asset. If Stoudemire’s knee or back forces him to retire prematurely, the Knicks are on the hook because his contract is uninsured.

Ironically, ex-Knicks power forward David Lee, who made the 2013 All-Star team for the West and was shipped out to make room for Stoudemire’s contract, invades the Garden tonight.

“I look at it in the long run, the 30,’’ Woodson said. “If he’s talking about extending his career, it’s a great position to be in. Thirty minutes is the max. He knows that. A lot of things can be done in 30 minutes. I’m excited and happy. This can really prolong him, help him in the long run.’’