‘Thank you’ is considered the formal version, while ‘thanks’ is the informal version of expressing gratitude. You can use both informally, but only ‘thank you’ is used for formal settings for acknowledgment, recognition, commendation, or felicitation.