Autotrophs can produce their own food through either photosynthesis or chemosynthesis. Photosynthesis uses sunlight as an energy source and occurs in plants, algae, and some bacteria containing chlorophyll. Chemosynthesis uses inorganic molecules from ocean vents as an energy source for bacteria. Heterotrophs cannot produce their own food and must obtain energy by consuming other organisms, breaking down food through cellular respiration.