I really doubt you can fit all Harry Potter books in 1M tokens.
https://ai.google.dev/gemini-api/docs/models (context window is details under model variant section with + signs)
They were meant to crank 2.5 to 2 million at some point though, maybe waiting now till 3?
[1]: https://www.imdb.com/title/tt0766092/quotes/?item=qt1440870
Using the GPT-4 tokenizer (cl100k_base) yields 349,371 tokens.
Recent Google and Anthropic models do not have local tokenizers and ridiculously make you call their APIs to do it, so no idea about those.
Just thought that was interesting.