Skip to main content

A Guide to Generating Fantasy Novels with GPT-Author

GPT-Author is an innovative tool that allows users to generate original fantasy novels using GPT-4 and the Stable Diffusion API. With just an initial prompt and the desired number of chapters, GPT-Author can create a complete novel in just a few minutes and output it as an EPUB file. In this blog post, we will explore how to run and use this tool to generate your very own fantasy novel.

How it Works

GPT-Author uses artificial intelligence to generate a list of potential plots based on a given prompt. It then selects the most engaging plot, improves upon it, and extracts a title. Next, it generates a detailed storyline with a specified number of chapters and improves the storyline. Each chapter is then individually written by the AI, following the plot and taking into account the content of previous chapters. Finally, a prompt to design the cover art is generated, and the cover is created. The novel is then compiled into an EPUB file for users to download and read.


GPT-Author can be run in Google Colab or a local Jupyter notebook. Here's a step-by-step guide to getting set up and generating your own novel:

Google Colab

  1. Open the GPT-Author notebook in Google Colab.
  2. Add your API keys to the notebook.
  3. Run the cells in order to install the necessary dependencies and generate your novel.
  4. Customize the prompt and number of chapters to generate your own unique novel.

Local Jupyter Notebook

  1. Install the necessary dependencies by running the following command in your terminal:
pip install openai ebooklib requests
  1. Download the GPT-Author notebook from the GitHub repository and open it in your local Jupyter notebook.
  2. Add your API keys to the notebook.
  3. Run the cells in order to generate your novel.
  4. Customize the prompt and number of chapters to generate your own unique novel.

Here's an example of customizing the prompt and number of chapters:

prompt = "Similar to Percy Jackson or Harry Potter in terms of vibes, but a different plot entirely. Set in modern day. Add some element of technology to it."num_chapters = 20writing_style = "Clear and easily understandable, similar to a young adult novel. Highly descriptive and sometimes long-winded."novel, title, chapters, chapter_titles = write_fantasy_novel(prompt, num_chapters, writing_style)

Note that prompts with fewer than seven chapters may cause issues.


GPT-Author is MIT licensed.


With GPT-Author, anyone can generate their own unique fantasy novel with just a few prompts and the click of a button. It's a powerful tool that uses artificial intelligence to generate compelling stories that are both engaging and unique. Whether you're a writer looking for inspiration or simply interested in exploring the possibilities of AI-generated content, GPT-Author is a great place to start. Give it a try and let your imagination run wild!


Popular posts from this blog

Track stock market information right in your Terminal.

     Introduction: As a developer, I love working with the terminal. The plain, simple, and in my opinion the best way to interact with the computer (also it makes you look geeky). I spent most of my time in the terminal. By now you must have guessed I am a huge fan of the terminal and terminal-based applications. Recently I developed an interest in stock markets and started tracking the stock markets. Since I love working with the terminal I decided to build a terminal oriented application that can help me to track the stock market. Inspir e d by  I build  terminal-stocks  which can provide the stock's current prices, historical prices, and global market summary. How to use terminal-stocks terminal-stocks  is available and can be used without installation. Get the current price of the stock. curl Current price of stocks You need to provide the ticker of the stock and terminal-stocks will give you the price information of the stock.  terminal-st

Setting up Nginx as a reverse proxy for Node.js App

Okay.. but what is a reverse proxy? A reverse proxy is a web server that centralizes internal services and provides unified interfaces to the public. Requests from clients are forwarded to a server that can fulfill it before the reverse proxy returns the server’s response to the client. Nginx is a popular choice to use as a reverse proxy for your node.js application. Got it. Now let’s set up Nginx Let’s say your nodejs server is running locally on localhost:3000. We will set up Nginx to get the request and forward the request to our nodejs server. Ins t alling Nginx on ubuntu sudo apt-get update sudo apt-get install nginx Configure Nginx Disable the default, virtual host unlink /etc/nginx/sites-enabled/default 2. Create a configuration file cd /etc/nginx/sites-available sudo nano reverse-proxy.conf 3. Put the following content in the file server { listen 80; listen [::]:80; access_log /var/log/nginx/reverse-access.log; error_log /var/log/nginx/reverse-e

PrivateGPT: A Step-by-Step Guide to Installation and Use

In this blog post, we will explore the ins and outs of PrivateGPT, from installation steps to its versatile use cases and best practices for unleashing its full potential. What is PrivateGPT? PrivateGPT is a cutting-edge program that utilizes a pre-trained GPT (Generative Pre-trained Transformer) model to generate high-quality and customizable text. Built on OpenAI's GPT architecture, PrivateGPT introduces additional privacy measures by enabling you to use your own hardware and data. This ensures that your content creation process remains secure and private. Installation Steps Before we dive into the powerful features of PrivateGPT, let's go through the quick installation process. PrivateGPT is a command line tool that requires familiarity with terminal commands. Let's get started: 1. Clone the Repository: Begin by cloning the PrivateGPT repository from GitHub using the following command: ``` git clone ``` 2.Navigate to the Direc