Read too strictly, this would exclude highly inventive works of science fiction and fantasy because they lack realism.
I never as a reader have been particularly interested in dystopian literature or science fiction or, in fact, fantasy.
Phrases like “straight out of science fiction” and “the possibilities are endless” appear on almost every page.
1929 (first attested in advertisements for "Air Wonder Stories" magazine), though there is an isolated use from 1851; abbreviated form sci-fi is from 1955. Earlier in same sense was scientifiction (1916).