The third-harmonic generation (THG) coefficient for a spherical quantum dot system with inversely quadratic Hellmann plus inversely quadratic potential is investigated theoretically, considering the regulation of quantum size, confinement potential depth and the external environment. The numerical simulation results indicate that the THG coefficient can reach the order of 10−12 m2 V–2, which strongly relies on the tunable factor, with its resonant peak experiencing a redshift or blueshift. Interestingly, the effect of temperature on the THG coefficient in terms of peak location and size is consistent with the quantum dot radius but contrasts with the hydrostatic pressure. Thus, it is crucial to focus on the influence of internal and external parameters on nonlinear optical effects, and to implement the theory in practical experiments and the manufacture of optoelectronic devices.