With the demand response and the massive access of distributed energy to the distribution network, it is possible to solve the transmission congestion problem by coordinating the controllable resources in a transmission network and distribution network. Aiming at resolving the problems of scattered side response resources and difficult-to-negotiate compensation prices, a bi-level optimal congestion scheduling strategy based on flexible load dynamic compensation prices is proposed. Under this strategy, the transmission network layer aims at minimizing the congestion cost and optimizes the adjustment scheme of the generator set and the node price. The active distribution network layer obtains the dynamic compensation price of the flexible load of the distribution network through the load characteristics and the node price. Through the interaction and coordination between the two layers, an optimal congestion scheduling scheme is obtained, and the transmission and distribution jointly solve the congestion problem. Based on the modified IEEE-39 experimental system, the effectiveness of the proposed strategy is verified via a simulation.