Solar-to-chemical conversion by semiconductor photocatalysis is a sustainable strategy to produce renewable energy. Here, we demonstrate that the generation of hydrogen peroxide (H2O2) via a typical one-step two-electron reduction of O2 by light-induced electrons could provide a new pathway for near-IR light catalysis. The proof-of-concept material is an oxygen-enriched borocarbonitride ceramic photocatalyst (BCNO). Density functional theory analysis suggests that the intermediates of O2 reduction of BCNO can be reasonably adjusted by the incorporation of O atoms. Consistent with the theoretical results, BCNO can generate H2O2 through a typical one-step two-electron reduction of O2 under near-infrared light. Together with the loading of a Co single atom cocatalyst for enhanced water oxidation rate, the apparent quantum efficiency values at 850 nm of the optimal BCNO for H2O2 evolution were estimated to be ~0.8 %, and the solar-to-chemical conversion (SCC) efficiency can reach 0.6 %. Our research reveals an important reaction pathway for the generation of H2O2, emphasizing that precise control of the energy band structure and surface structure of the photocatalyst is essential for achieving efficient conversion of solar-to-chemical.