Novel ether-ketone-imide hyperbranched polymers with non-reactive benzophenone or thermally reactive phenylethynyl endgroups were prepared from the corresponding AB2 monomer and benzophenone-based endcapping agent in one-pot fashion. The resulting polymer has repeating units of the formula: