The consideration of students’ emotional and psychological health is crucial to facilitate effective teaching and grading practices. This study set out to shed light on the interplay between self-esteem (S-E), cognitive-emotion regulation (CER), academic enjoyment (AE), and language success (LS) in artificial intelligence (AI)-supported online language learning. To this end, the foreign language learning self-esteem scale, the Cognitive Emotion Control Questionnaire, the foreign language enjoyment scale, and a researcher-made test were distributed to 389 English as a foreign language learners in China. Screening the data with confirmatory factor analysis and structural equation modeling, the effects of S-E, CER, AE, and LS were identified and quantified. These results highlighted the important function that online courses assisted by AI perform in enhancing students’ CER and AE. This implied that students who have cultivated a robust sense of self-efficacy are adept at effectively regulating their cognitive and affective processes in AI-supported language learning. Possible improvements in language education are discussed, as are the study’s broader implications.