We demonstrate a method to stabilize the output power of a ∼3.3-THz quantum-cascade laser (QCL) using a photonic integrated circuit, consisting of a racetrack resonator (RTR) coupled to a QCL ridge waveguide. Amplitude stabilization was achieved for >300 seconds, without perturbation to the emission spectrum, by dynamically adjusting the electrical bias to the RTR, and hence the coupling between the QCL and RTR