Freedom ain’t cheap — so say the lawyers who got a New York pizza delivery guy out of immigration prison.

The lawyers who helped Pablo Villavicencio fight President Trump’s zero-tolerance immigration policy — and won — have filed papers seeking to make Uncle Sam pay their $190,000 tab.

Villavicencio, 35, became a cause celebre after he was locked up by Immigration and Customs Enforcement agents while delivering a pizza to the Fort Hamilton military base in Brooklyn.

Villavicencio, who was living in Long Island with a wife and kids despite a 2010 order of deportation, got caught when a guard at the base ran an ID check.

It took two teams of lawyers to stop the deportation and get him freed him from ICE detention.

Villavicencio, who is married to a US citizen, was ordered removed from ICE custody while he seeks a waiver to override the deportation order.

By locking him up while he was attempting to obtain the waiver, the feds stripped the pizza deliveryman of his “right to engage in an immigration process made available to him,” according to Manhattan federal judge Paul Crotty. And they did it “without any explanation or justification,” the judge said.

Those words could prove costly to taxpayers, according to Villavicencio’s lawyers.

In a paper filed Tuesday, they point to a law that says the government should bear the financial cost of any action it brings that is “not substantially justified.”

They want $139,514.02 for Villavicencio’s Debevoise & Plimpton lawyers and $51,290.68 for his lawyers with The Legal Aid Society, as well as reimbursement for expenses of $69,245.70.

The legal bills are based on an hourly rate that they say exceeds the $202.57 per hour cap allowed by the Equal Access to Justice Act, which authorizes Uncle Same to pick up the tab for baseless claims.

A spokeswoman for the Manhattan US Attorney’s office declined to comment.