A generator unit to be attached to a traveling vehicle that has a prime mover and a PTO shaft to transmit power from the prime mover, includes: a generator; an input shaft having: a first connector portion configured to be connected to the PTO shaft; and a second connector portion configured to be connected to a working device to be connected to the traveling vehicle; a transmitter mechanism to transmit, to the generator, power supplied from the PTO shaft, the power being inputted from the first connector portion to the input shaft; and an attachment frame having: an attachment portion to which the generator, the input shaft, and the transmitter mechanism are attached; and a mounting portion configured to be mounted to the traveling vehicle.