Autothermal gasification by injection of oxygen or steam