Maybe it was the pain medication talking, but center Enes Kanter vowed to play against the Trail Blazers on Monday, when the Knicks return home from their disastrous 0-2 trip south.

Kanter missed both losses with back spasms and still hasn’t recovered but wants to suit up anyhow if team doctors allow it. The quirky, old-school center is the antithesis of the modern-day NBA, in which it’s preferred players err on the side of caution.

“[Saturday] morning I was still having a hard time even walking,” Kanter said late Saturday night after the shorthanded Knicks blew a 22-point first-quarter lead in losing 117-102 to the Rockets. “But I think I’m going to try to play the next game Monday. I might not be 100 percent, but I’m going to try to play Monday. If they don’t give me the green light, I can’t do anything about it. But I want to play Monday for sure.”

Kanter’s immense value to the club showed in a horrifying loss to the NBA’s worst team Friday in Atlanta as the Knicks were beaten up on the boards.

On Saturday against the Rockets, Kristaps Porzingis joined Kanter on the sidelines with a stiff back, but the Latvian appeared to adhere to the new strategy of being conservative on the second night of back-to-backs if he is sore.

Kanter, on other hand, is grappling with an ailment he never has experienced in the NBA. The 25-year-old center from Turkey woke up the day after Thanksgiving in Atlanta unable to walk. When he lifted his shirt to reporters Friday night, his torso was bent at the waist — a sure sign he’s out of alignment.

Kanter’s been popping pills that are a lot stronger than Advil: He said he’s taking the anti-inflammatory Mobic, and said he’s willing to take more if they can get him on the court.