Writing on spec (or “on speculation”)
is the process in which writers complete a manuscript and submit that to a magazine or book publisher before receiving an assignment and signing a contract. Markets that request writers submit a complete manuscript in their initial submission are requesting “on spec” submissions.
writing on spec
How to Write a Spec Script: The Complete Guide to Writing on Spec (studiobinder.com)