Chemical energy input converted from the sun occurs via

the process of photosynthesis. During photosynthesis, plants and other photosynthetic organisms use sunlight to convert carbon dioxide and water into glucose, a form of chemical energy that can be stored and used by the organism for energy. This process allows organisms to capture and store energy from the sun in the form of chemical bonds within glucose molecules.