short · 3 min
PDF input
What happens when you attach a PDF to a model call: each page sent as text, as an image, or both, and what that costs.
updated 29 Sept 2026
We've got a three-page report with one chart in it. We attach it to an API call and ask: "What does the chart on page two show?"
The model never reads the PDF file itself. Before it sees anything, the provider turns each page into stuff it can read. Which stuff decides whether it can see that chart at all, and what we pay.
Two copies of every page
Claude does two things to each page. It pulls out the text, and it renders the page as a picture. The model gets both, side by side. OpenAI does the same on its models that can see images.
Why both? The text lets the model quote the words exactly. The picture lets it read the chart, the table lines and the layout, using the same machinery as any other image (that's vision models). Without the picture, our chart question has no answer.
And we pay for both. Claude's docs put the text at 1,500 to 3,000 tokens a page, depending on how packed it is, plus the image tokens on top. On Amazon Bedrock, which runs Claude in a text-only mode and a full mode, a three-page PDF is about 1,000 tokens as text only and about 7,000 with the page images. Seeing the chart made the document about seven times as expensive.
OpenAI lets us pick how sharp the page pictures are with a detail
field. low is cheaper; high is for dense charts and small print. Here
is a trap, though: the default changed. On GPT-5.6 and later, auto
means high; on earlier models it means low. The same PDF costs more on
a newer model unless we set it ourselves.
Gemini counts per page
Gemini reads the pages as images too, but prices each page as a unit. On Gemini 3 (as of 2026-09), a page costs about 560 tokens by default, 280 at low resolution and 1,120 at high. The text that's already inside the PDF gets read as well, and it's free. Google says quality for documents usually stops improving at the middle setting.
So Gemini is cheaper? Careful. Token counts aren't dollars, since every model charges a different price per token (see token pricing). Compare the final bill.
And Google's own pages disagree with each other. One says every page is 258 tokens, without naming a model; the Gemini 3 table says 560. The 258 looks like the number for older models. Look at the usage numbers in a real response before you plan a budget around either.
The limits
As of 2026-09:
| Max size | Max pages | |
|---|---|---|
| Claude | 32 MB per request | 600 per request (100 if the context window is under 1M tokens) |
| OpenAI | 50 MB per file and per request | not stated |
| Gemini | 50 MB | 1,000 |
On Claude, a dense PDF can fill the context window well before it hits the page limit.
Since the pages go through the vision side, they carry its weak spots. Small, blurry or rotated text gets misread, and both Claude's and Gemini's docs say to turn pages upright before sending. Both also put the document before the question.
When this stops being the right tool
If we ask lots of questions about the same file, prompt caching stops us paying for it every time. For lots of PDFs at once there's the batch API.
But say it's a thousand PDFs, and we want to search across them. Then we'd convert them to clean text once, with document parsing, and fetch only the pieces we need with retrieval.
Further reading
- PDF support, Anthropic docs. How Claude turns pages into text plus images, the limits, and the text-only versus full comparison on Bedrock.
- File inputs: PDF files,
OpenAI docs. The same design, and the
detaildefault that changed with GPT-5.6. Check this one if your PDF bill jumped. - Document understanding, Google, 2026. Gemini's page limits and the free built-in text on Gemini 3.
- Media resolution, Google, 2026. Tokens per page at each resolution.