It has a flame chamber inside its body. It inhales, then blows out fire that is over 3,000F degrees.
It stores some of the air it inhales in its internal flame pouch, which heats it to over 3,000 degrees.