A medical imaging apparatus has a gantry having a stationary gantry housing and a rotor that is rotatable relative to the stationary gantry housing. At least one component to be cooled is arranged at the rotor, and a cooling device produces a cooling of the component. The cooling device has a carrier medium that is ferromagnetic and designed to absorb heat at the rotor and discharge heat to the stationary gantry housing and is transported from the stationary gantry housing to the rotor and back by at least one magnetic field generated by a magnetic field generator.