A study is made of self-interaction of optical beams under one- and two-photon absorption conditions by solving nonlinear quasioptics equations using numerical techniques. An analysis is also made of self-focusing in the aberration-free approximation. The various self-interaction regimes are classified. A dependence of the threshold power on a factor characterizing the relationship between diffraction and saturation effects is obtained.