In the API's you can or at least could, adjust a value called 'temperature' that adjusts how 'creative' or convergent answers from an llm are.
https://community.openai.com/t/cheat-sheet-mastering-tempera...