In this paper, an online optimal energy distribution method is proposed for composite power vehicles using BP neural network velocity prediction. Firstly, the predicted vehicle speed in the future period is obtained via the output of a BP neural network, where the current vehicle driving state and elapsed vehicle speed information is used as the input. Then, according to the predicted vehicle speed, an energy management method based on model predictive control is proposed, and online real-time power distribution is carried out through rolling optimization and feedback correction. Cosimulation results under urban drive cycle show that the proposed method can effectively improve the energy efficiency of composite power sources compared with the commonly used method with the assumption of prior known driving conditions.