Organisms that can produce their own food from the substances available in their surroundings using light or chemical energy.