An integrable generalization on the two-dimensional sphere S 2 and the hyperbolic plane H 2 of the Euclidean anisotropic oscillator Hamiltonian with 'centrifugal' terms given byis presented. The resulting generalized Hamiltonian H κ depends explicitly on the constant Gaussian curvature κ of the underlying space, in such a way that all the results here presented hold simultaneously for S 2 (κ > 0), H 2 (κ < 0) and E 2 (κ = 0). Moreover, H κ is explicitly shown to be integrable for any values of the parameters δ, Ω, λ 1 and λ 2 . Therefore, H κ can also be interpreted as an anisotropic generalization of the curved Higgs oscillator, that is recovered as the isotropic limit Ω → 0 of H κ . Furthermore, numerical integration of some of the trajectories for H κ are worked out and the dynamical features arising from the introduction of a curved background are highlighted.The superintegrability issue for H κ is discussed by focusing on the value Ω = 3δ, which is one of the cases for which the Euclidean Hamiltonian H is known to be superintegrable (the 1:2 oscillator). We show numerically that for Ω = 3δ the curved Hamiltonian H κ presents nonperiodic bounded trajectories, which seems to indicate that H κ provides a non-superintegrable generalization of H even for values of Ω that lead to commensurate frequencies in the Euclidean case. We compare this result with a previously known superintegrable curved analogue H κ of the 1:2 Euclidean oscillator, which is described in detail, showing that the Ω = 3δ specialization of H κ does not coincide with H κ . Hence we conjecture that H κ would be an integrable (but not superintegrable) curved generalization of the anisotropic oscillator that exists for any value of Ω and has constants of the motion that are quadratic in the momenta. Thus each commensurate Euclidean oscillator could admit another specific superintegrable curved Hamiltonian which would be different from H κ and endowed with higher order integrals. Finally, the geometrical interpretation of the curved 'centrifugal' terms appearing in H κ is also discussed in detail.MSC: 37J35 70H06 14M17 22E60