If students acknowledge that they used ChatGPT and what the prompt was (as required by the OP), then it's not plagiarism.
But I think many professors who don't accept AI as a writing aide would say that it doesn't satisfy the assignment and is worth zero points.