gpt-author  by mshumer

AI novel generator using GPT-4, Stable Diffusion, and Anthropic APIs

created 2 years ago
2,517 stars

Top 19.0% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project automates the creation of original fantasy novels using a chain of AI model calls, targeting writers and hobbyists seeking to generate complete e-books quickly and affordably. It leverages GPT-4 and Stable Diffusion to produce EPUB files, with a newer Claude 3 version offering improved quality and simpler code.

How It Works

The process begins with an AI-generated plot list based on a user prompt, followed by plot selection and refinement. A detailed chapter-by-chapter storyline is then created, with each chapter written individually, maintaining context from previous ones. Finally, cover art prompts are generated, the cover is created, and the entire novel is compiled into an EPUB file. This iterative approach aims to build a coherent narrative from initial concept to final output.

Quick Start & Requirements

  • Install dependencies: pip install openai ebooklib requests
  • Requires API keys for OpenAI (GPT-4) and Anthropic (Claude 3).
  • Run via Google Colab or a local Jupyter notebook (gpt_author_v2.ipynb).
  • Recommended: Prompts with 7 or more chapters to avoid issues.

Highlighted Details

  • Generates a 15-chapter novel for approximately $4.
  • Novel generation takes only a few minutes.
  • Includes a Claude 3 version for enhanced novel quality and simpler code.
  • Outputs EPUB files compatible with e-readers.

Maintenance & Community

Contributions, issues, and feature requests are welcome. The project is maintained by Matt Shumer (@mattshumer_).

Licensing & Compatibility

MIT licensed. Permissive for commercial use and integration with closed-source projects.

Limitations & Caveats

The original GPT-4 version may require token management for longer novels. Some chapters might be cut off prematurely. The project is primarily focused on fantasy genre generation.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
14 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.