“He said, ‘I am going to kill you. You are going to die,’” assistant district attorney Kristen Baraiola told jurors of the brutal beating allegedly carried out by Sanjay Tripathy, which left blood all over the bed, walls, floor and bathroom sink of the swank hotel room.

“She actually thought she was going to die that night,” Baraiola said of the victim, who connected with the married father of two through the sugar daddy website SeekingArrangement before he allegedly pummeled her inside the W hotel following a date.

SeekingArrangement is a site that pairs wealthy men with young women, according to court papers.

Tripathy, a corporate IT executive, sat stone-faced as Baraiola described how he allegedly pinned the woman down on the bed and choked her with both hands. The woman’s name is being withheld due to the nature of the charges.

The exec then allegedly told her that if she didn’t perform oral sex on him, he would sodomize her.

She complied, and then fled the hotel and ran to an NYPD vehicle parked nearby to report the incident, the prosecutor said.

In his openings, defense attorney Frank Rothman said the accusations were nothing more than a “shakedown” after the couple concluded a consensual BDSM encounter and the woman realized she was bruised.

“He’s a married guy,” the lawyer said of Tripathy. “When he travels, when he’s in New York, he likes to indulge. And he’s got some freakish fantasies. He’s into BDSM.

“This was a business relationship,” Rothman said. “This is about dollars and cents.”

Tripathy, who’s charged with sex abuse, strangulation, assault and other counts, faces up to 25 years if convicted.