Is the conversion of light energy to electrical energy endothermic or exothermic?

endothermic. Photocells absorb energy.