A process of endcapping a polyimide system with an endcapping agent in order to achieve a controlled decrease in molecular weight and melt viscosity along with predictable fracture resistance of the molded products is disclosed. The uncapped system is formed by combining an equimolar ratio of 4,4'-bis (3,4-dicarboxyphenoxy) diphenylsulfide dianhydride (BDSDA) and 1,-bis (aminophenoxy) benzene (APB) dissolved in bis (2-methoxyethyl)ether. The endcapped system is formed by dissolving APB in bis-(2-methoxyethyl)ether, adding the BDSDA. By varying the amount of endcapping from 0 to 4%, molecular weight is decreased from 13,900 to 8660. At a processing temperature of 250 C, there is a linear relationship between molecular weight and viscosity, with the viscosity decreasing by two orders of magnitude as the molecular weight decreased from 13,900 to 8660