We consider near-field heat transfer with non-zero chemical potential for photons, as can occur between two semiconductor bodies, held at different temperatures with at least one of the bodies under external bias. We show that the dependence of radiative heat flux on chemical potential enables electronic control of both the direction and magnitude of near-field heat transfer between the two bodies. Moreover such a configuration can operate as a solid-state cooling device whose efficiency can approach the Carnot limit in the ideal case. Significant cooling can also be achieved in the presence of inherent non-idealities including Auger recombination and parasitic phononpolariton heat transfer. a shanhui@stanford.edu