When using ChatGPT or similar AI tools in your research, APA states that it's best practice to explain your method in the Method section or introduction of your paper. Provide the prompt used and the AI-generated text. Since ChatGPT results aren't retrievable by others, cite them like algorithm output, which credits the author of the algorithm.
Example:
When prompted with “Is the left brain right brain divide real or a metaphor?” the ChatGPT-generated text indicated that although the two brain hemispheres are somewhat specialized, “the notation that people can be characterized as ‘left-brained’ or ‘right-brained’ is considered to be an oversimplification and a popular myth” (OpenAI, 2023).
Reference Entry:
OpenAI. (2023). ChatGPT (Mar 14 version) [Large language model]. https://chat.openai.com/chat