The feds are considering a hefty child pornography charge against disgraced ex-pol Anthony Weiner that could send him to prison for at least 15 years, law enforcement sources told The Post on Tuesday.

Weiner has been under investigation since a report last year revealed that he had exchanged lewd messages with an underage girl in North Carolina.

His lawyers have been meeting with Manhattan federal prosecutors in a bid to minimize his potential punishment, the Wall Street Journal reported Tuesday.

The horndog Democrat — who, after being forced to resign his House seat in a sexting scandal, derailed a 2013 comeback campaign for mayor by sending lewd texts under the pseudonym “Carlos Danger” — could be charged with production of kiddie porn for allegedly soliciting explicit photos of the teen, sources said.

That crime carries a mandatory minimum prison term of 15 years, and a maximum of 30.

Other charges under consideration include receipt of child pornography, which carries a five-year mandatory minimum, and possession of child pornography, which doesn’t have a mandatory minimum, sources said.

The laptop Weiner used to communicate with the girl was seized by the feds and helped derail Hillary Clinton’s presidential bid when FBI Director James Comey announced in late October that some of her emails to Weiner’s wife, Huma Abedin, had been found on it.

In August, Abedin announced she was leaving Weiner after The Post exclusively revealed he had sent a woman a lewd photo of himself wearing white underpants with their 4-year-old son lying next to him.

Weiner was forced to resign from Congress in 2011 after accidentally tweeting a crotch shot that he initially tried to blame on a hack of his account.

A spokesman for Manhattan US Attorney Preet Bharara and a lawyer representing Weiner declined to comment.

Additional reporting by Kaja Whitehouse