That is a difficult question.
It is always best to have a little power in reserve. It depends on how quickly the generator can respond to the load. If it is a modern generator in good order you should be OK at 4kW.
I would try to test any that you intend buying and also make sure the shop knows it is for powering a welder.
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.