The ability to produce all the chemical (organic) constituents needed for life and growth from simple inorganic compounds.