Neuromodulation serves as a cornerstone for brain sciences and clinical applications. Recent reports suggest that mid-infrared stimulation (MIRS) causes non-thermal modulation of brain functions. Current understanding of its mechanism hampers the routine application of MIRS. Here, we examine how MIRS influences the sensorimotor transformation in awaking-behaving pigeons, from neuronal signals to behavior. We applied MIRS and electrical stimulation (ES) to the pretectal nucleus lentiformis mesencephali (nLM), an essential retinorecipient structure in the pretectum, and examined their influences on the optokinetic nystagmus, a visually guided eye movement. We found MIRS altered eye movements by modulating a specific gain depending on the strength of visual inputs, in a manner different than the effect of ES. Simultaneous extracellular recordings and stimulation showed that MIRS could either excite and inhibit the neuronal activity in the same pretectal neuron depending on its ongoing sensory responsiveness levels in awake-behaving animals. Computational simulations suggest that MIRS modulates the resonance of a carbonyl group of the potassium channel, critical to the action potential generation, altering neuronal responses to sensory inputs and as a consequence, guiding behavior. Our findings suggest that MIRS could be a promising approach toward modulating neuronal functions for brain research and treating neurological diseases.