Accurate short-term wind power prediction is of great significance for the scheduling and management of wind farms. This paper proposes a model for short-term wind power prediction. Firstly, on the basis of traditional long short-term memory network, the peephole connections is added. The improved long short-term memory network is more stable compared to traditional long short-term memory neural networks and is suitable for regression prediction. Secondly, chaotic mapping, adaptive weights, Cauchy mutation, and opposition-based learning strategies are introduced to improve the sparrow search algorithm, and applied to optimize the four hyper-parameters of the long short-term memory network, greatly improving the prediction accuracy of the network. The effectiveness of the model is validated using two short-term wind power datasets with sampling times of 10 and 30 minutes respectively, combined with some fitting curves and performance indicators. The comparison results indicate that the proposed short-term wind power prediction model has high prediction accuracy.