I believe inspiration is a bit of a buzz word. Artists who only get something done if they are "inspired", don't really get much done, because they may wait forever to feel inspired. Among writers, there's a often cited quote that sums that up:
"I write when I’m inspired, and I see to it that I’m inspired at nine o’clock every morning." This applies to many
professional artists.
Personally, I rarely have moments where I sit around and suddenly get struck by inspiration. More often, I sit down and start doing something, anything. Play random notes, or do "freewriting", and usually after a bit some idea pops up and I explore them further (and often throw away the results, then try something new, but frequently I learn something nonetheless).
I also feel that inspiration is a direct result of exposure to (a lot of) the art you want to recreate. As a writer, you'd read a ton (and read it like a writer, not like a consumer), and as a composer or producer you listen to a lot of other people's music across different genres (and likewise, you need to listen like a producer: analyze what you hear, "hear through the sounds" and recognize the structure, the beats, and ask curious questions like "I wonder how he did that" and then actively figure out the answers).
Most "art" is just the result of hard work. Every so often, someone does something really outstanding ("real art"), something for the ages. But the majority of music, writing, graphical art is all the result of deliberate and focused practice, hard work, persistence, and experience.
(This may be a controversial opinion.)