Can an AC work on an inverter?

Summer is coming up and as you all know when summer arrives there are bound to be power cuts as well. What I really wanted was to have an inverter which would allow a window AC to run for at least an hour. Would this actually be possible? If this is possible what power inverter would I need and how much would it cost?