The answer is: light energy from the sun.
Light energy is radiant energy from the sun; it's the only kind of energy we can see with our eyes.
In photosynthesis (convert light energy into chemical energy), the carbon in carbon(IV) oxide is being reduced to form glucose.
The pigment chlorophyll absorbs one photon and loses one electron (it passed throw an electron transport chain) in the light-dependent reactions.
Light energy is transformed into chemical energy, that is stored in carbohydrate molecules (glucose), which are synthesized from carbon dioxide and water.