Answer:
The Sung Dynasty invented a form of the flamethrower, but the Byzantines already had one before them.
All of this took place more than a millennium ago. Byzantines in 7th C and Chinese about 10th C depending on which version is regarded as a flame thrower.