The traveling wave reduction of the Schrödinger equation with anti-cubic nonlinearity for describing of the optical solitons is studied. We find two first integrals of the system of equations corresponding to the real and imaginary part of the optical pulse. Using the first integrals we obtain the general and special solutions of the Schrödinger equation with anti-cubic nonlinearity.