Three suspected gang members pummeled two men — sexually assaulting one with a pipe threader — before dousing them with gasoline in a Cleveland home, police said.

The trio — believed to be members of the brutal Heartless Felons street gang — are accused of assaulting a 31-year-old man after storming into his apartment in the city’s Clark-Fulton neighborhood last Thursday. Two of the suspects, Nathaniel Ramos Jr., 18, and Kelli Dunnican, 22, were wearing masks at the time, according to police reports cited by Cleveland.com.

Once inside, Ramos, Dunnican and another suspected gang member, Troy White, 47, pummeled the man, punching and kicking him along with another 51-year-old man inside the home. The goons then tied the 31-year-old man’s hands behind his back with blue tape, police said.

The younger victim called White a homophobic slur and accused him of sexually assaulting other inmates while in prison — prompting White to sodomize the man with a metal pipe threader as Ramos and Dunnican held the man down, authorities said.

Ramos doused both victims with gasoline, but the suspects ultimately decided against setting them on fire after Dunnican talked them out of it, police reports show.

Another man suddenly showed up at the house and fought with the three suspects before White shot him twice in his right leg. The wounded 41-year-old victim ran into a room and held the door shut behind him as he screamed for help, prompting the trio to flee the home, but not before Dunnican stole a cellphone and a pair of shoes, according to police reports.

The three suspects were later arrested after running through back yards in the 3200 block of Fulton Road, where Dunnican and Ramos were apprehended outside and White was busted inside a detached garage.

Police found a handgun in White’s pocket at the time of his arrest, and Ramos was found in possession of 14 baggies of marijuana and reeked of gasoline, cops said. Dunnican was found carrying rolls of duct tape, a knife and three cellphones, including the one stolen from the victim’s apartment, police said.

Both Dunnican and Ramos declined to talk to investigators, but White told police he was involved in a theft ring with both victims and that they had smoked crack together earlier that day, police reports show.

White, according to prison records, has served two stints in prison for armed robbery. He’s also scheduled to be sentenced later this month for an apartment burglary in May, Cleveland.com reported.

Dunnican and Ramos do not have adult criminal records.