The AC works even when the car is on battery (meaning,the car is started {ignited}), depending on the charge of battery.
If the battery is fully charged and the prius is standing still or on lower speed, the car would be operating on battery and AC would be working fine.
The engine starts either when you press the accelerator harder or battery is low.