The exact solution of the Schrodinger equation for the four quasi-exactly solvable potentials is presented using the functional Bethe ansatz method. It is shown that all models give rise to the same basic differential equation which is quasi-exactly solvable. The eigenvalues, eigenfunctions and the allowed potential parameters are given for each of the four models in terms of the roots of a set of algebraic Bethe ansatz equations.