An assembly for sterilizing and depyrogenating containers includes a feeding station, a heating station, and a cooling station. The stations are passed through by a conveyor of containers. The cooling station includes a main unit coupled without discontinuities to the heating station and at least one interchangeable air treatment module. The main unit includes at least one inlet aperture connected without interruptions to an air diffuser arranged above at least a portion of the conveyor, and at least one outlet port. Each module has at least one supply hose with shape and dimensions complementary to those of the at least one inlet aperture in order to be detachably coupled thereto, and at least one suction channel with shape and dimensions complementary to those of the at least one outlet port in order to be detachably coupled thereto.