Here is an article from the Modern Language Association's (MLA's) Style Center that will be helpful:
Taken from https://style.mla.org/citing-generative-ai/
Works Cited entry, from Purdue University's lib guide (https://guides.lib.purdue.edu/c.php?g=1371380&p=10135074):
“Explain antibiotics” prompt. ChatGPT, 13 Feb. version, OpenAI, 16 Feb. 2023, chat.openai.com.
Breakdown:
Author: MLA does not suggest that AI be considered the author of the work, which is why the entry skips that information.
Title of Source: The text of the prompt you used to generate the material in parentheses and the word prompt: "Explain antibiotic" prompt.
Title of container, italicized: ChaptGPT,
Version: Be as specific as possible. If you don't know which version you're using, ask ChatGPT! 13 Feb. version,
Publisher: The company who made the AI tool: OpenAI,
Date: The date you generated the AI-generated result: 16 Feb. 2023,
Location: The url for the AI tool: chat.openai.com.
In-text citation:
Use the "Title of Source," which is the prompt you used to generate a response, in the in-text citation. Just use the first few words so you reader can find the source in your Works Cited page. Keep it to about three words.
("Explain antibiotics").