Klein forms and the generalized superelliptic equation