Because they are both AI. Artificial intelligence and Artificial General intelligence are not the same thing. AI is an entire field of computer science dating back to the very beginnings.
That wouldn't be illegal though, you'd have to criminalize any brief description that includes nudity and a real person which is a clear violation of free speech.
It's quite literally impossible to stop the creation of them at this point, doesn't mean you can't criminalize the distribution of it under revenge porn laws.
You understand and give explicit permission for every piece of the kernel?