Is it okay to use a generator?

You have. The power. To use. A generator.   Portable electric generators, up to 20kW, can be used as long as you keep a 12-inch distance between the generator (specifically the sparkplug/ignition area) and your ICD.