The invention discloses a use method for flexible management of an API gateway system. The method comprises the following steps: 1, interface presetting, 2, grammar selection, 3, container programming, 4, programming testing and 5, gateway adding. According to the invention, through adding the interface container module in the API gateway, interfaces can be flexibly created, modified, and deleted,to meet the rapid change requirements of various terminals. Rear-end service does not need to be changed. Online lightweight programming is carried out through the interface container. Problem of flexibility is solved, the problem of collapse caused by the interface can be effectively repaired. By adopting the API gateway service of the interface container, the maintenance work of the back-end service can be greatly reduced, and in the rapid change demand, the interface service of the interface container can be used for providing the service responding at any time for the front end, so that the development cost is reduced, the development efficiency is improved, and a great role is played in increasing the maintenance response speed.