Can Gemini 2.5 Write A Book In One Prompt?

April 9, 2025 ยท View on GitHub

(Spoiler alert: not yet. But Anthropic can!)

April 09, 2025

The pace of development in AI these days is so fast that it's hard to keep on top of all the latest developments.

I've always found it interesting that among all the hotly debated parameters discussed in the most recent SOTA models, the question of how many tokens a model can generate in one continuous output (max output tokmens) seems to be very little discussed.

This metric exists independent of the maximum input tokens and the context window.

To date, even models with huge context windows have had curiously limited maximum output tokens.

For most ordinary use cases, even a limit of 8192 tokens like Gemini 2.0 doesn't pose much of a constraint. When you begin using AI tools for code generation, however, it's surprisingly easy to exceed that context. Which leaves chunking approaches as the default. Go to for when you need to produce a continuous output and maintain a consistent formatting.

Can Gemini 2.5 Really Do 65K Tokens?

When Google launched Gemini 2.5, relatively scant attention was paid to the fact that the model brought a huge step forward in Max output tokens from 2.0's'of 8192 to 2.5's theoretical limit of 65,536, representing a four fold increase.

alt text

alt text

After noticing this in the Google AI Studio UI, my mind was quickly drawn towards one question: How many words can fit in that? Is that like an entire book? And if so, can I try to write a book using one single prompt!?

65K Tokens In Book Terms: Frankenstien, Price And Predjudice, Sherlock Holmes!

DescriptionValue
Tokens65,000
Approximate Words48,750
A4 Pages (double spaced)195
Paperback Book Pages139

For further context, here are some real books that have approximately that word count.

TitleAuthorApproximate Word CountEstimated Page Count
The Adventures of Sherlock HolmesArthur Conan Doyle43,000 - 50,000~139
The Picture of Dorian GrayOscar Wilde~78,000~139
Pride and PrejudiceJane Austen~120,000~139
FrankensteinMary Shelley~78,000~139

My Book Experiment

To try this out, I needed to write a prompt which would request the generation of a book which is in the prompt file. With the exception of some obviously fictitious elements, the plot is based on my own life story, but intentionally a bit ridiculous.

Actual Output Results

The system prompt specified 38-40,000 words, but the actual outputs were significantly less than the claimed maximum token output (65,536 tokens). Here are the actual results calculated using our analysis scripts:

Word Count Analysis

This estimate is based on the theoretical assumed word count for the tokenization.

Output SourceWord CountCharacter CountPercentage of Claimed Maximum, Approximating (48,750 words)
AI Studio11,51774,48623.62%
Script10,51666,56721.57%
Anthropic27,655182,18256.73%

Word Token Comparison

Token Count Analysis

Output SourceToken CountToken-to-Word RatioPercentage of Max Tokens (65,536)
AI Studio15,6511.3623.88%
Script14,2111.3521.68%
Anthropic34,8361.2653.16%

Token Counts

Token Percentage

Token-to-Word Ratio Comparison

Token to Word Ratio

Book Comparison

Comparing the outputs with classic books:

Book/OutputWord CountPercentage of Max Output (48,750 words)
Sherlock Holmes46,50095.38%
Dorian Gray78,000160.00%
Pride & Prejudice120,000246.15%
Frankenstein78,000160.00%
AI Studio Output11,51723.62%
Script Output10,51621.57%
Anthropic Output27,65556.73%

Book Comparison

Comparison Between Methods

The script output produced 1,440 fewer tokens than the AI Studio output, a difference of 9.20%. The Anthropic output produced 19,185 more tokens than the AI Studio output, a difference of +122.58%. The Anthropic output produced 20,625 more tokens than the Script output, a difference of +145.13%.

Key Findings

  1. Actual Output vs. Claimed Maximum: Both Gemini methods produced outputs that were only about 1/4 of the claimed maximum capacity, while Anthropic produced output that was just over half (53.16%) of the claimed maximum.
  2. Token-to-Word Ratio: The average ratio ranged from 1.26 to 1.36 tokens per word across the methods, with Anthropic having the lowest ratio.
  3. Book Equivalent: The Gemini outputs represent approximately 1/4 of a typical novel in length, while the Anthropic output represents over half of a typical novel.