Any homoeostatic process in which an organism maintains its internal body temperature at a relatively constant value. This is achieved by using metabolic processes to counteract fluctuations in the temperature of the environment.