A generator produces the electricity, while a power inverter stores and reconverts the energy for use. Virtually all consumer-grade generators have inverters integrated into them.