A language model is a probabilistic model that assigns probabilities to sequence of words, and allows to compute the following:

Usually LLMs are trained on a huge corpus of text in order to achieve amazing peformances.