Example of citing AI in a paper:

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 
OpenAI. (2023). ChatGPT (Mar 14 version) [Large language model]. https://chat.openai.com/chat

Reference (for this example)

McAdoo, T. (2024, February 23). How to cite ChatGPT. APA Style. https://apastyle.apa.org/blog/how-to-cite-chatgpt/