← all repositories
mshumer/gpt-author

$4 fantasy novels, written by committee

A Jupyter notebook that chains GPT-4, Claude 3, and Stable Diffusion into an assembly line that outputs EPUBs.

2.5k stars Jupyter Notebook Creative · Design
gpt-author
Not currently ranked — collecting fresh signals.
star history

What it does Feed it a prompt and a chapter count, and it spits out a complete fantasy novel as an EPUB. The pipeline runs plot generation, plot selection, title extraction, chapter-by-chapter writing with memory of prior events, cover art generation via Stable Diffusion, and final compilation. The newer Claude 3 version reportedly writes “far better novels” with “much simpler code.”

The interesting bit The author is admirably frank about the project’s rough edges: prompts were “written very quickly,” short novels (under 7 chapters) break, and chapters sometimes cut off early. The README doubles as a public todo list, which is either refreshing honesty or a cry for help.

Key highlights

  • Outputs actual EPUB files, not just text dumps
  • Claims a 15-chapter novel costs ~$4 in API calls
  • Claude 3 version added April 2024; original version now “outdated”
  • Runs in Google Colab or local Jupyter with pip install openai ebooklib requests
  • Includes sample novels you can load on a Kindle

Caveats

  • Short books (fewer than 7 chapters) “tend to cause issues”
  • Some chapters cut off mid-sentence
  • Token limits mean later chapters may lose context unless compressed
  • Currently fantasy-only; other genres require modification

Verdict Good for developers who want to prototype automated long-form writing pipelines or study prompt-chaining architectures. Not for anyone expecting publishable prose out of the box — the author doesn’t pretend otherwise.

Frequently asked

What is mshumer/gpt-author?
A Jupyter notebook that chains GPT-4, Claude 3, and Stable Diffusion into an assembly line that outputs EPUBs.
Is gpt-author open source?
Yes — mshumer/gpt-author is open source, released under the MIT license.
What language is gpt-author written in?
mshumer/gpt-author is primarily written in Jupyter Notebook.
How popular is gpt-author?
mshumer/gpt-author has 2.5k stars on GitHub.
Where can I find gpt-author?
mshumer/gpt-author is on GitHub at https://github.com/mshumer/gpt-author.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.