A Brooklyn teen who says two NYPD detectives forced her to perform sex acts came forward Friday to demand justice.

The officers have admitted to having sex with the teen while on duty but insist it was consensual, according to police sources.

“SHARE THIS, yes its about me,” the 18-year-old woman tweeted, linking to a Post article about her claims.

“Justice needs to be served,” she added in another post.

The teen — who goes by Anna Chambers on social media and consented for her photos to be used in The Post — says one of the Brooklyn South narcotics officers raped her and both forced her to give them oral sex in a Chipotle parking lot on Sept. 15. She was handcuffed in a police van at the time, she says.

“These crooked ass cops i swear i never want to see one again. What if someone did that to your daughter,” she tweeted Sept. 18.

The two detectives, Richard Hall and Eddie Martins, have been placed on modified duty along with their supervisor, Sgt. John Espey, and stripped of their guns and shields, law-enforcement sources said. Espey was put on modified because of his failure to supervise, sources said.

The young woman’s lawyer, Michael David, told The Post she tweeted out the story and urged people to share it because “she was shocked that the [cops] would say it was consensual after everything that was done to her.

“She just wants everybody to know it’s an absolute lie,” David said. “She was viciously, brutally raped in handcuffs.’’

The teen says she was driving with two male pals in Calvert Vaux Park in Coney Island when they were pulled over by the two plainclothes cops because they were there after dark.

One of the friends, a 24-year-old man, told The Post that the officers searched the car and found his Prozac pills and Klonopin pills inside the young woman’s purse. The pal spoke on condition of anonymity, fearing retribution from police.

“They said she’s not allowed to have them outside the bottle, they’re a controlled substance, and she has to go to the precinct,” he recalled Friday. “I saw them put her in cuffs. She was like, ‘Are you serious?’ ”

The cops told the man that they were taking the teen to the 60th Precinct station house while letting him go, he said.

Her male friend said he went to the station house about a half-hour later and was told no one had been brought in. He left and found her waiting by his car, visibly upset.

“Her hair was a mess, and she ran up to me and gave me a hug, and she was like, ‘They f–ked me. They f–ked me,’ ” he said. “

‘’They forced me to have sex with them.’ She was like, ‘I can’t believe this is happening.’ She asked me if I should tell her parents, and I was like, ‘Yeah.’ ”

The pal drove the young woman home, then took her to Montefiore Hospital with her mother about an hour later. Hospital workers called the cops, her lawyer said.

Both the NYPD’s Internal Affairs Bureau and Brooklyn DA’s Office are investigating. “We’re aware of the allegations, and Internal Affairs is conducting an investigation into certain members of Brooklyn South narcotics,” an NYPD rep said.

Efforts to reach the involved officers were unsuccessful.