System and method for real-time control of concentration in electrolysis process. The system (100) includes of an electrolyser (110) with distinct oxygen and hydrogen sides (120, 130), divided by a membrane. Key components include a diluent gas injection assembly (140) featuring a line to introduce diluent gas into ...