Might want to check the start up power requirements for a 1 HP motor and make sure generator is big enough.
Then again, a long string and a piece of 3 in PVC with a check valve might work too.
A lot of people where I am use solar power for their wells to water livestock because power isn’t available were the well is.
Unless you live where you have a very deep well with a low water level pretty much any gen. will run a water pump.