CIT Group Inc is in talks with JPMorgan Chase & Co and Goldman Sachs Group Inc for short-term financing of $2 billion to $3 billion as it looks for ways to avoid a potential bankruptcy, a source close to the company said on Friday.

The lender is still in talks with bondholders for a debt-to-equity swap, the source said. One potential scenario before CIT is also a sale of some assets to raise capital, the source said.

A bankruptcy, however, is still possible over the next few days, and CIT is maintaining an ongoing dialogue with regulators about the situation, the source said.

The lender had wanted regulators' permission to transfer assets to its bank unit, but it did not happen, the source said.

CIT could not immediately be reached for comment. The source did not want to be identified because the talks are not public.

(Reporting by Paritosh Bansal; Editing by Lisa Von Ahn)