The ChatGPT API supports two types of messages: ‘system’ and ‘user’. The ‘system’ message is typically used at the beginning of the conversation to set the behavior of the assistant. The ‘user’ message represents the instructions from the human user for the assistant. There is also a ‘role’ parameter which determines who is providing the message and can be ‘system’, ‘user’ or ‘assistant’.