An exciton in a spherical quantum dot is studied analytically within the effective mass approximation. A parabolic confinement under an electric field is considered. The linear and nonlinear optical absorption coefficients are calculated within the density matrix formalism. No assumptions are made about the strength of the confinement. It is shown how the competing mechanisms of the Coulomb interaction, the confinement and the applied static electric field affect the optical absorption.