The document describes the development of an ASIC for spectral counting and imaging of x-rays. The ASIC has been designed for readout of cadmium telluride radiation sensors with up to 64 pixels. Each channel contains components to perform charge measurement and discrimination. Prototypes using the ASIC have been tested for applications such as material separation using dual-energy imaging and micro-computed tomography. The presentation discusses the ASIC design specifications and requirements for spectral photon counting in applications including industrial scanning and medical imaging.