A pyrogen is a substance that induces fever (derived from gr. word: 'pyros'- Fire). It can be internal (endogenous) or external (exogenous) to the body.
Endotoxins are an example for exogenous pyrogens. Endotoxins are lipopolysaccharides present in the cell wall of some bacteria. They are heat-resistent and even survive sterilization processes.