All terms
Models and requests
Next-token prediction
Next-token prediction is the objective of estimating which token should follow the text seen so far. Repeating that step produces longer passages, code, and tool-call payloads.
Example
After `return user.`, the model assigns probabilities to possible following tokens such as `id` or `name`.