Rated Power of a Motor/Generator

I understand that given an efficiency, the power out is equal to power in times the efficiency. But I’m wondering if the rated power of a motor/generator is the "input power" or "output power"?