Not really what hallucinating means. That’s like saying JK Rowling hallucinated Harry Potter. But ok.
Perhaps fabricate is a better word, as suggested elsewhere in this thread?