As a student, you should always check with your professor to find out if AI can be used. If it is not allowed, don't use it. If it is allowed, you need to give attribute to it as a source and acknowledge or disclose how it was used.
The MLA Style website provides some basic guidance for citing your use of generative AI. According to MLA:
"Describe the symbolism of the green light in the book The Great Gatsby by F. Scott Fitzgerald."
While the green light in The Great Gatsby might be said to chiefly symbolize four main things: optimism, the unattainability of the American dream, greed, and covetousness ("Describe the symbolism"), arguably the most important --the one that ties all four themes together--is greed.
"Describe the symbolism of the green light in the book The Great Gatsby by F. Scott Fitzgerald" prompt. ChatGpt, 13 Feb. version, OpenAI, 8 Mar.2023, chat.openai.com/chat
In the above citation, you can see the title is the prompt that was used and it is identified as a prompt. The "container" is the tool used - ChatGpt. It was the February 13th version, and was created by OpenAI. the prompt was given and the response generated on March 8th, 2023. Finally, the general URL for ChatGpt is given in MLA format.
To find the version, look at the bottom of the page for clues. An example from ChatGpt is shown here where it states it is the September 25 Version. You should include the year in your citation even though the current year is left off of the ChatGPT site.