NEW YORK — Epic Ponzi schemer Bernard Madoff asked a federal judge Wednesday to grant him a “compassionate release” from his 150-year prison sentence, saying he has terminal kidney failure and less than 18 months to live.

Madoff’s attorney filed court papers saying the 81-year-old has end-stage kidney disease and other “chronic, serious medical conditions,” including hypertension and cardiovascular disease.

“There’s no cure for my type of disease,” Madoff told The Washington Post in a phone interview, expressing remorse for orchestrating the largest Ponzi scheme in history.

After spending more than a decade behind bars, Madoff said his dying wish is to salvage his relationships with his grandchildren.

“I’ve served 11 years already,” he said, “and, quite frankly, I’ve suffered through it.”

The U.S. Attorney’s Office in Manhattan declined to comment. Prosecutors are expected to file a motion in response to the request in the coming days.

Madoff pleaded guilty in 2009 to 11 federal counts in a fraudulent investment scheme involving billions of dollars, admitting he swindled thousands of clients over decades. The rich and famous were among his victims, as well as people of lesser means who had invested with him unknowingly through feeder funds.

The new court filings say Madoff was admitted in July to the palliative care unit of the federal prison in Butner, North Carolina.

“Madoff’s health has and will continue to deteriorate, and he will require more assistance physically and medically leading up to his death,” attorney Brandon Sample wrote.

A so-called compassionate release would allow Madoff to “receive end-of-life care in the community, which would be more efficient, timely, and less burdensome” on the U.S. Bureau of Prisons, Sample wrote.

The Bureau of Prisons denied Madoff’s request for release in December, according to court papers, saying it would “minimize the severity of his offense.” The agency lists Madoff’s release date as Nov. 14, 2139.

Madoff’s motion mentions Scotland’s controversial release of Abdelbaset al-Megrahi, who was convicted in 2001 of blowing up Pan Am Flight 103 over the Scottish town of Lockerbie in 1988, killing 270 people. Al-Megrahi was freed in 2009 on compassionate grounds and died of cancer in 2012, still protesting his innocence.

The motion also cites the more recent case of Bernard Ebbers, a 78-year-old executive sentenced to 25 years in prison in one of the largest corporate accounting scandals in U.S. history.

A federal judge in Manhattan ordered the former WorldCom chief released due to his deteriorating health, saying he posed no risk to society.