Using Python, create an implementation that leverages the power of GPT-4 to generate an entire science fiction book with its corresponding chapters.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence