Photosynthesizing Alien Uses Both Oxygen and Carbon Dioxide
These aliens' skin cells perform photosynthesis to transform light, carbon dioxide, and water into glucose and oxygen. These are transported directly to its blood stream. These aliens can also breath oxygen from. the air. In sunlight, they primarily rely on photosynthesis. In the dark, they rely on breathing.
Thus, they get energy from both carbon dioxide and oxygen!