Wind power forecasting has complex nonlinear features and behavioral patterns across time scales, which is a severe test for traditional forecasting techniques. To address the multi-scale problem in wind power forecasting, this paper innovatively proposes an ultra-short-term forecasting model LFformer based on Legendre-Fourier, which firstly focuses on the important information in the input sequences by using the encoder-decoder architecture, and then scales the range of the original data with the Devlin normalization method, and then utilizes the Legendre polynomials to The data sequence is projected into a bounded dimensional space, the historical data is compressed using feature representation, then feature selection is performed using the low-rank approximation method of Fourier Transform, the prediction is inputted into the multilayer perceptron through the multi-scale mixing mechanism, and finally the results are outputted after back-normalization. The experimental results show that compared with the existing prediction methods, the model realizes the improvement of prediction accuracy and stability, especially in the ultra-short-term prediction scenario, with obvious advantages. The research results are not only valuable for improving the overall operational efficiency of the wind power system, but also help to enhance the stable operation of the power grid, which provides strong technical support and guarantee for wind power enterprises to improve the competitiveness of bidding for Internet access in the power market competition.