On-spec Definition

adverb
In hope of success, using one's best guess.
Wiktionary
(colloquial, business, of creating a work) With the hope of selling it, as opposed to on commission (for hire).
I'm writing an article on spec. I hope some magazine will buy it.
Wiktionary