This paper is concerned with smooth trajectory generation of biped robot which has inverted pendulum type balancing weight. Genetic algorithm is used to generate the trajectory of the leg and balancing weight. Balancing trajectory can be determined by solving the second order differential equation under the condition that the reference ZMP (Zero moment point) is settled. Reference ZMP effect on gait pattern absolutely but the problem is how to determine the reference ZMP. Genetic algorithm can find optimal solution under the high order nonlinear situation. Optimal trajectory is generated when use genetic algorithm which has some genes and a fitness function. In this paper, minimization of balancing joints motion is used for the fitness function and set the weight factor of the two balancing joints at the fitness function. Inverted pendulum type balancing weight is very similar with human and this model can be used for humanoid robot. Simulation results show ZMP trajectory and the walking experiment made on the real biped robot IWR-IV.