One Prompt AI Book
Experiment - generating a book using a single prompt
About This Project
One-Prompt-AI-Book is a Python experiment that investigates whether large language models can produce a book-length text in a single continuous generation. The project was motivated by the gap between the claimed maximum output token limit of Gemini 2.5 (65,536 tokens) and the limited output length typically seen in practice. The prompt requested a semi-autobiographical novel of 38,000 to 40,000 words, and the resulting outputs were compared against that target and against classic novels such as Sherlock Holmes and Frankenstein.
The project includes analysis scripts that calculate word counts, character counts, token counts, and token-to-word ratios for outputs from Google AI Studio, a local script, and Anthropic. It generates comparison charts covering word counts, token counts, percentage of maximum capacity, and book-equivalent length. Reported findings show that both Gemini outputs reached about 21 to 24 percent of the claimed maximum, while the Anthropic output reached about 53 percent, with token-to-word ratios ranging from 1.26 to 1.36.
The project may be of interest to developers evaluating long-form generation limits, researchers studying the gap between advertised and effective output capacity, and anyone designing workflows that depend on single-pass generation of long documents such as code or structured text. The repository documents both the methodology and the measured results.