In this work we study class I interior solutions supported by anisotropic polytropes. The generalized Lane–Emden equation compatible with the embedding condition is obtained and solved for a different set of parameters in both the isothermal and non-isothermal regimes. For completeness, the Tolman mass is computed and analysed to some extend. As a complementary study we consider the impact of the Karmarkar condition on the mass and the Tolman mass functions respectively. Comparison with other results in literature are discussed.