a figment of someone's imagination

US /ə ˈfɪɡmənt əv ˈsʌmwʌnz ɪˌmædʒɪˈneɪʃən/
UK /ə ˈfɪɡmənt əv ˈsʌmwʌnz ɪˌmædʒɪˈneɪʃən/
"a figment of someone's imagination" picture
1.

ein Hirngespinst von jemandes Fantasie, ein Produkt der Einbildung

something that someone has imagined and that does not really exist

:
The monster under the bed was just a figment of his imagination.
Das Monster unter dem Bett war nur ein Hirngespinst seiner Fantasie.
Her fear of flying is not a figment of her imagination; it's a real phobia.
Ihre Flugangst ist kein Hirngespinst ihrer Fantasie; es ist eine echte Phobie.