Recently, many semiparametric and nonparametric finite mixture models have been proposed and investigated, which have widened the scope of finite mixture models.However, these works either lack identifiability results or only give identifiability results on a case-by-case basis. In this article, we first propose a semiparametric mixture of generalized linear models (GLMs) and a nonparametric mixture of GLMs to unify many of the recently proposed nonparametric and semiparametrc mixture models.We then further establish identifiability results for the proposed two models under mild conditions. The new results reveal the identifiability of some recently proposed nonparametric and semiparametrc mixture models, which are not previously established, and thus provide theoretical foundations for the estimation and inference of those mixture models. In addition, the methods can be easily generalized for many other semiparametric and nonparametric mixture models which are not considered in this article.