Seyffer,
Just as simple as it sounds.
Make sure the motor is rated inverter 100% duty if you want to run it for hours.
Size in HP same as engine plus a bit, due to motor efficiencies.
Smaller ICE engines have an inflated HP rating. As much as 4:1.
More efficient the motor the more efficient generator. Motors come in 70 to 94%.
Look at eBay, price has nothing to do value of motor, just who's bidding.
Add a reverse power detection relay, if the engine fails, don't want the grid motoring your engine.
Once you get above couple HP, motors will be 3 phase. If your power feed is single phase use any two of the phases, leave third wire disconnected. Some say to connect cap it it, helps stimulates induction motor's rotor. (this needs more research).
Do more reading, this is not an exhaustive list of things to consider.
Where is the H coming from?
Have fun,
Scott.