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