When using Wannier functions to study the electronic structure of multi-parameter Hamiltonians H (k,λ) carrying a dependence on crystal momentum k and an additional periodic parameter λ, one usually constructs several sets of Wannier functions for a set of values of λ. We present the concept of higher dimensional Wannier functions (HDWFs), which provide a minimal and accurate description of the electronic structure of multi-parameter Hamiltonians based on a single set of HDWFs. The obstacle of non-orthogonality of Bloch functions at different λ is overcome by introducing an auxiliary real space, which is reciprocal to the parameter λ. We derive a generalized interpolation scheme and emphasize the essential conceptual and computational simplifications in using the formalism, for instance, in the evaluation of linear response coefficients. We further implement the necessary machinery to construct HDWFs from ab initio within the full-potential linearized augmented plane-wave method (FLAPW). We apply our implementation to accurately interpolate the Hamiltonian of a one-dimensional magnetic chain of Mn atoms in two important cases of λ: (i) the spin-spiral vector q, and (ii) the direction of the ferromagnetic magnetizationm. Using the generalized interpolation of the energy, we extract the corresponding values of magneto-crystalline anisotropy energy, Heisenberg exchange constants, and spin stiffness, which compare very well with the values obtained from direct first principles calculations. For toy models we demonstrate that the method of HDWFs can also be used in applications such as the virtual crystal approximation, ferroelectric polarization and spin torques.