Autotrophs and heterotrophs must use energy in the form of ATP to synthesize organic compounds.
Autotrophs and heterotrophs are both living organisms that require some form of food to get energy.
However, autotrophs make their own food via photosynthesis or some other similar method. Heterotrophs get their food by eating autotrophs or other heterotrophs.