The leader of the alleged upstate cult Nxivm encouraged his sex “slaves” to get abortions after he impregnated them — and tried to make the procedures seem more appealing by claiming they were an opportunity to “lose weight and get fit,” a victim testified Tuesday.

A former member, identified as “Daniela,” was terrified when she was impregnated by Svengali-like Nxivm leader Kieth Raniere in 2006, the woman said in Brooklyn federal court.

“I didn’t wanna have a baby, and I didn’t wanna have a baby with Keith,” the 33-year-old witness said. “He was with a lot of other women. He was with my sisters, and that was something that caused me a lot of shame.”

When she broke the news of her pregnancy to Raniere, he claimed that she had already agreed to get an abortion.

“He was very calm and collected. He very matter-of-factly stated that we’d already talked about if I got pregnant, I’d have to get an abortion,” she said, adding that she didn’t recall that conversation.

“It was surprising to hear him say that. He normalized [abortions].”

She went to an unidentified clinic and received a pill that induced an abortion but was left to endure the physical and emotional discomfort by herself, she said.

“I was completely alone. Keith didn’t visit me — not once,” said Daniela, who was living with her parents in the Albany area at the time.

Then Raniere, who often harangued Daniela about her weight, tried to conjure up a silver lining by claiming the abortion would help her slim down.

“A few days after, we were on a walk. He told me that this was a great opportunity to lose weight and get fit. He said there are Olympic athletes who get pregnant as part of their training just to get abortions,” she said.

Daniela said her younger sister Camila was also impregnated by Raniere and got an abortion at his behest in 2008 when Camila was just over 18.

Raniere is charged with racketeering conspiracy, sex trafficking, sexual exploitation of a child and other crimes for his alleged activity while heading the group.

During jury selection, Raniere’s lawyer Marc Agnifilo said a pro-life potential juror should be tossed from the pool because “as part and parcel of [Raniere’s] desire to have sex with lots of women, he used abortions cavalierly.”