An Upper East Side father was charged with making 14 ghost guns in his apartment after photos he shared in a group chat showed his 7-year-old son holding two of the illegal firearms, prosecutors said Monday.

Corey Davis, 41, was indicted on 16 counts of second-degree criminal possession of a weapon, one count of first-degree criminal possession of a weapon, three counts of third-degree criminal possession of a weapon and 14 counts of criminal possession of a firearm, the Manhattan District Attorney’s office and the NYPD said in a press release.

Prosecutors said someone in Davis’ group chat — which included family members and friends — reported the photo he sent of his son to the NYPD.

Officers who searched an apartment Davis used as an office on Nov. 7 found two guns and ammunition inside, according to prosecutors.

When police returned to Davis’ apartment with a search warrant a day later, they found 10 semi-automatic pistols and two assault weapon-style pistols, the DA’s office said.

They also found “tools and parts for constructing ghost guns,” according to the DA’s office.

 “The allegations make it evident that by manufacturing these weapons, Davis put not only the public, but a child in serious peril,” Manhattan District Attorney Alvin Bragg said in a statement. “Using one’s child as a prop to showcase homemade, illegal weapons is inexcusable and extremely dangerous.”

Davis started buying gun parts and gun accessories online in June 2020, prosecutors said.

That same year, the DA’s office and the NYPD launched a “Ghost Guns Initiative” aimed at cracking down on the illegal weapons, according to the release.  

“To date, the Ghost Guns Initiative has prosecuted cases involving the seizure of over 80 ghost gun parts, 42 fully assembled ghost guns, 24 serialized firearms, 421 high-capacity magazines, 45 silencers, and other gear including scopes and rapid-fire modification devices,” the release said.

Year-to-date as of Nov. 14, the NYPD had seized 356 ghost guns, up from 202 during the same time period last year, the department said Monday.

“Stopping the proliferation of ghost guns is integral to the NYPD’s comprehensive strategy to keep these illegal weapons from harming our communities,” NYPD Commissioner Keechant Sewell said in a statement. “These untraceable weapons shoot real bullets, hurt real New Yorkers, and cause real harm—and our fight against them will continue with vigor.”

In a statement provided to NY1 on Monday, Davis' attorney, Jeremy Saland, said: "While my client respects the District Attorney's Office's need to investigate these types of allegations, Mr. Davis looks forward to addressing the accusations in court and dispelling any wrongful presumptions and concerns prosecutors may have about him and his purported conduct."