For reliable operation, size the generator to at least 5.8 kVA (20 % headroom above the 4.8 kVA load).
Power factor 0.80 means 3.84 kW of real work plus 2.88 kVAR of reactive power. Capacitor banks can improve this.
At 240 V the circuit carries 20.0 A. Use a circuit breaker rated at least 25 A (NEC 125 % rule for continuous loads).
Next stepAlways confirm the generator nameplate kVA at the site power factor (usually 0.8). Add starting-surge allowance (2-6x running watts) for motors and compressors.