A wealthy developer apparently killed himself days before he was to answer allegations that he cut his family out of the hefty profits from their $200 million Manhattan high-rise.

Peter Wei, 66, died Oct. 10, his lawyers told a Florida court, where a lawsuit was filed against Wei in June by his brother, Tony.

Peter Wei was supposed to file a response to the suit the following Monday, on Oct. 14.

Miami cops confirmed they responded to a suicide at Peter Wei’s apartment, but would not identify the victim.

The Brazilian-based Wei family purchased 116 John St. in lower Manhattan in 1980 for just $4 million, but in 2010, Wei partnered with real estate developer Nathan Berman to convert the 412-unit building into high-end rentals — a deal that eventually paid off by churning out more than $9 million in annual income. The building’s value skyrocketed to more than $200 million in 2014.

Peter Wei was supposed to make sure those profits flowed through a family trust, which included parents Daniel and Emily and their sons, Peter and Antonio, but failed to do so, his brother claimed in the lawsuit.

The Miami resident was accused of scamming his relatives out of a sum “in excess of $50 million,” his brother charged in court papers.