Denne artikkelen er ikkje tilgjengeleg på språket ditt enno, så han blir vist på engelsk.
Gemini vs Claude for Translation: Context, Output Limits, and File Inputs
Compare Gemini and Claude for translating long documents: chat context per plan, output per response, PDF and Word inputs, token counts, and API cost, with a planning script.

Gemini and Claude both advertise a context window of about a million tokens, so most comparisons stop there and paste a paragraph into each. For a long translation, the million-token figure is the least useful number on either spec sheet. Three other numbers decide most jobs: how much each one writes back in one response, what it costs to read your file in its original format, and which plan gives you the large context in the chat app. On those three, the two tools pull in opposite directions.
Short answer, from Google's and Anthropic's own pages as checked on November 30, 2026:
- Claude writes more per response. Current Claude models return up to 128K output tokens per response. Gemini 4 models return up to 65,536 tokens by default. On both, any thinking the model does counts toward that cap and is billed as output.
- Gemini reads PDFs and Word files far more cheaply. Google counts about 560 tokens per PDF page at the default resolution. Anthropic says a PDF page typically uses 1,500 to 3,000 text tokens plus an image of the page. Through the API, Gemini also accepts Word, PowerPoint, and OpenDocument files directly; Claude's API document blocks do not accept DOCX, so you convert it to text or PDF first.
- Claude gives the large context on any paid plan. Claude's newest models work with 1M tokens on Pro and above. The Gemini app gives 32k tokens without an AI plan, 128k on Google AI Plus, and 1 million only on AI Pro and Ultra.
- Neither gives you back your original file translated. Both answer in the chat or the API response. Claude can create a new file and Gemini can export an answer to Google Docs, but either way it is a new document whose chapters, headings, footnotes, and images you have to check or rebuild yourself. If you need the translated EPUB, DOCX, or PDF itself, use a file-level tool.
We did not run a translation quality contest for this article, and we don't name a quality winner. Every figure below comes from the vendors' help, model, and pricing pages, and you can rerun the arithmetic for your own document with the planning script further down.
The two tools side by side
The chat apps and the APIs have different limits, so they get separate rows.
| Gemini | Claude | |
|---|---|---|
| Chat context | 32k tokens without an AI plan, 128k on Google AI Plus, 1 million on AI Pro and Ultra | 1M tokens on paid plans for most current models, including Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5; 500K or 200K on some older ones |
| Chat file uploads | "Most file types", up to 10 files per prompt, 100 MB per non-video file. Google does not publish a list of document formats | 500 MB per file, up to 20 files per chat. DOCX, PDF, EPUB and other formats are listed |
| Long PDFs in chat | No per-page limit stated for the app | Up to 1,000 pages; text and visuals up to 100 pages, text only from 101 to 1,000 |
| API context | 1,048,576 tokens on Gemini 4 models, shared by input, thinking, and output | 1M tokens on current models |
| API output per response | 65,536 tokens by default, thinking included; "long decode" can go further | 128K tokens on current models, thinking included (300K on the Batch API with a beta header for most of them) |
| API document inputs | PDF up to 1,000 pages; Word, PowerPoint, Excel, and OpenDocument up to 2,000 pages or slides; 50 MB per file | PDF up to 600 pages per request (100 when the request's context window is under 1M), and plain text. DOCX and XLSX are not supported in document blocks |
| Tokens per PDF page | About 560 at the default resolution (280 at low, 1,120 at high) | 1,500 to 3,000 text tokens per page, plus a page image of up to 1,568 tokens |
| API list price per 1M tokens, input / output | Gemini 4 Hydrogen: $1.50 / $7.50. Gemini 4 Neon: $3 / $15. Gemini 4 Carbon: $4 / $20 from December 1, 2026 | Claude Sonnet 5.5: $2 / $10. Claude Opus 5.5: $4 / $20. Claude Fable 5.2: $8 / $40 |
| Free API use | Free tier on some models, such as Gemini 4 Hydrogen; Google's pricing page says free-tier content is used to improve its products | Not covered in this comparison |
Sources: Google Gemini Apps limits, attaching files in Gemini Apps, document understanding, long decode, Gemini 4 Hydrogen model page and API pricing; Anthropic upload limits, context window on paid plans, models overview, PDF support, Files API and API pricing. Google's page lists Gemini 4 Carbon at $2 / $10 through November 30, 2026, and the same page lists the higher December price, so check the current table before you plan around a number.
The same file costs very different amounts to read
This is the row most comparisons miss, and it matters whenever your source is a PDF.
Google says Gemini 4 and Gemini 3 models count about 560 tokens for each PDF page at the default medium resolution (document understanding). Anthropic says Claude converts each PDF page into an image and also extracts its text, and that "each page typically uses 1,500–3,000 tokens depending on content density" for the text, with the page image costing up to 1,568 tokens on top (PDF support).
For a 300-page book PDF, the planning script turns those published figures into:
| Reading a 300-page PDF once | Input tokens | Cost per full read |
|---|---|---|
| Gemini 4 Hydrogen | ~168,000 | ~$0.25 |
| Gemini 4 Neon | ~168,000 | ~$0.50 |
| Claude Sonnet 5.5 | ~450,000 to ~1,370,000 | ~$0.90 to ~$2.74 |
| Claude Opus 5.5 | ~450,000 to ~1,370,000 | ~$1.80 to ~$5.48 |
The low Claude figure counts text tokens only, so the real number is higher. Two consequences follow:
- A long PDF can fill Claude's whole context before you ask anything. At the top of Anthropic's range, 300 dense pages are more than 1M tokens, and Anthropic warns that dense PDFs "can fill the context window before reaching the page limit." The same PDF uses less than a fifth of Gemini's window.
- The cheap route on Claude is plain text. If the PDF has a real text layer, extracting the text first and sending it as text avoids the per-page image cost. Our guide to PDF text extraction versus OCR explains how to tell whether the text layer is usable. For a scanned book, the page images are the content, and Gemini's lower per-page count is a real advantage.
Word files follow the same pattern. Gemini's API reads a DOCX directly: on Gemini 4 models each page is rendered as an image at about 560 tokens. Anthropic's Files API documentation says DOCX and XLSX are not supported in document blocks and suggests converting them to text, or to PDF when the file contains images. In the Claude chat app, by contrast, DOCX and EPUB are both on the upload list.
The same book is a different number of tokens
For plain text, both vendors price by tokens and count them differently. Anthropic says 1M tokens is roughly 555,000 English words on its current tokenizer, about 0.56 words per token (models overview). Google says 100 tokens is about 60 to 80 English words. By those two rules of thumb, the same English text is about 8% to 44% more tokens for Claude than for Gemini.
That is arithmetic from published rules of thumb, not a measurement, and both vendors say other languages differ. It means equal list prices would not give equal bills, and that Gemini's 65,536-token response holds roughly 39,000 to 52,000 English words, while Claude's 128K holds roughly 71,000. On both, thinking takes its share of that cap first. Count a sample chapter with each vendor's tokenizer before you plan a book: Anthropic has a token counting endpoint, and every response from either API reports the tokens it used.
Three novels through both tools
We took the word counts of three public-domain novels we measured from Standard Ebooks for our DeepL alternatives guide and ran them through the planning script with its dated limits file. The script assumes the translation needs as many tokens as the source (--output-ratio 1.0) and 5,000-word requests. Gemini figures are ranges because Google's rule of thumb is a range.
| Frankenstein (78,473 words) | Pride and Prejudice (122,266 words) | War and Peace (565,038 words) | |
|---|---|---|---|
| Estimated tokens, Gemini / Claude | ~98K-131K / ~141K | ~153K-204K / ~220K | ~706K-942K / ~1.02M |
| Fits Gemini app, no AI plan (32k) | No | No | No |
| Fits Gemini app, Google AI Plus (128k) | Borderline | No | No |
| Fits Gemini app, AI Pro or Ultra (1M) | Yes | Yes | Yes |
| Fits Claude chat on a paid plan (1M) | Yes | Yes | Just over |
| API responses at the output cap, at minimum: Gemini / Claude | 2 / 2 | 3-4 / 2 | 11-15 / 8 |
| API cost, Gemini 4 Hydrogen | ~$0.88-1.18 | ~$1.38-1.83 | ~$6.36-8.48 |
| API cost, Claude Sonnet 5.5 | ~$1.70 | ~$2.64 | ~$12.22 |
| API cost, Gemini 4 Neon | ~$1.77-2.35 | ~$2.75-3.67 | ~$12.71-16.95 |
| API cost, Claude Opus 5.5 | ~$3.39 | ~$5.29 | ~$24.43 |
What the table shows:
- In the chat app, your plan decides more than the brand. On Gemini without a paid plan, none of the three novels fits, and Frankenstein is borderline even on Google AI Plus. Any paid Claude plan, on one of its 1M-context models, holds the first two with most of the window to spare. On Gemini AI Pro or Ultra, all three fit.
- No single response holds a whole translated novel on either API. The "at minimum" row is a floor that assumes every response runs to its cap, which you should not plan for: a response that stops at the limit cuts the text mid-paragraph. Both models' thinking tokens come out of the same cap, so the real floor is higher on both. Chapter-sized requests of a few thousand words keep both far from the cap and make a missing paragraph easy to spot.
- The gaps between models are larger than between vendors. Of the four models in the table, Gemini 4 Hydrogen is the cheapest, helped by Gemini's lower token count per English word. Both vendors also sell smaller models that we left out, such as Claude Haiku 5.5 (from $0.10 / $0.50 per million tokens) and Gemini 3.8 Flash ($0.75 / $3.75 through December 31, 2026); test their quality on your language pair before relying on them. The costs are list-price floors for source and translation tokens only. They leave out the glossary and instructions you repeat in every request, thinking tokens (billed as output by both vendors), retries, Batch discounts, and tax.
Google also offers "long decode" on Gemini 4 models, which can keep writing past 65,536 tokens up to the context limit. Its own guide says not to use it for "requests for a fixed length", because "the model doesn't follow length targets" (long decode). A translation is a fixed-length job, so treat long decode as a margin against a long chapter being cut off, not as a way to send the whole book. Our Gemini translation guide covers this in more detail.
To plan your own file, count its words and run, for example:
python3 pair_plan.py 98000 --pages 340 --output-ratio 1.3 --chunk-words 4000
How long conversations behave
Translating a whole book in one long chat is risky in both apps, for different documented reasons.
Anthropic says that on paid plans with code execution turned on, when a conversation nears the context limit, "Claude summarizes earlier messages to make room for new content" (context window help). A glossary pasted at the start of the chat may later be working from a summary.
Google's upload help warns that if a file is too large, Gemini "may provide a response that misses connections or details throughout the content," especially for prompts that need many details spread across a large file (attaching files). A full translation needs every detail in the file.
The practical rule is the same for both: send each chunk in a fresh request that carries the full glossary and style rules, mark the start and end of every chunk, and check each response before moving on. The terminology consistency guide covers what belongs in that glossary, and the Claude translation guide covers where to keep a glossary so that a summary does not replace it.
What we refuse to claim about quality
Neither vendor publishes a translation ranking between the two, and we could not find a public test with a stated corpus, prompt, and scoring method that compares the current models on long documents. So we don't repeat translation scores here. Two things are reliable:
- Languages are a separate check. Anthropic's multilingual support page reports how its models' benchmark scores hold up across languages relative to English, which describes understanding, not translation of your genre. For lower-resource languages, test your exact pair on a real sample before committing a book to either.
- Your sample decides. Translate the same two or three representative pages with both, using the same prompt and glossary, and have someone who reads the target language compare them for omissions, changed names and numbers, and register. Our LLM translation guide has a repeatable way to run that test.
Which one to use
| Your job | Better fit | Why |
|---|---|---|
| Read or question a whole foreign-language book without a Google AI Pro plan | Claude (any paid plan) | 1M-token context on Pro and above; EPUB is on its upload list |
| Translate or analyze a long PDF, especially a scanned one, through the API | Gemini | About 560 tokens per page versus thousands; up to 1,000 pages per file |
| Work from a DOCX or PPTX through the API | Gemini | Its API reads Office and OpenDocument files directly; Claude's needs text or PDF |
| Fewest responses per chapter or report | Claude | 128K output tokens per response versus 65,536; thinking counts toward both caps |
| Try a workflow before paying | Gemini | A free API tier exists on some models, but Google says that content is used to improve its products, so keep private files off it |
| Get a translated EPUB, DOCX, or PDF back | Neither as the main tool | Any file they produce is a new one; you check or rebuild chapters, headings, footnotes, and images yourself |
Before you upload a manuscript, contract, or client file to either, check the data terms of the exact surface you use. The document translation privacy checklist lists the questions to ask, and our Claude vs ChatGPT comparison and Gemini vs DeepL comparison cover the other common pairings.
The last row of the table is where a chat model stops being the efficient route. If what you need at the end is the book or document itself in another language, BookTranslator translates the whole PDF, EPUB, DOCX, or other supported file as one task and returns a translated file, plus a bilingual version where the format supports it. Pro members can add Glossary, which finds the document's names and terms and translates with them, at an extra price shown on the pricing page. You see the price before you pay. Keep Gemini or Claude for what they do well alongside it: checking a difficult passage, exploring tone, or asking what a paragraph means.
Relaterte innlegg





