It depends on where you're submitting. Drafting with AI and then rewriting into your own clear, accurate work is normal and legitimate, the same as starting from an outline or a transcript.
It becomes a problem when the rules ban AI, like an exam or an assignment with a strict policy, or when you hide characters to fool a required check. Know the rules of the place you're submitting to, and use these steps to write better rather than to misrepresent who did the work.
