There is no API available to directly access chat GPT. But it is based on Open AI's GPT 3 APIs. There are various models which take in text input as a prompt and produce a text reply. The most powerful of these models is "text-davinci-003".