I read PDFs with Claude, and Claude costs about a dollar per document. The same pipeline on an open-weight model, on a GPU I rent by the hour, costs less than five cents. It is not free, and it is not the same, but it is 23 times cheaper.
The documents
The work is reading PDF documents: on average 20+ pages, in different languages, full of tables, in different formats, from different companies. And on top of that, every country has its own rules for what has to be in them.
The data model the reading has to fill has more than 500 attributes. Nobody reads a document like that in one prompt. The document is split into parts, and each part has its own model and its own prompt. That is faster, because the parts run in parallel, and every part can be tuned on its own.
Claude is a ladder, not a model
On the API side, the point is to start cheap and pay more only when needed: routing through a model pool, where a part goes to the cheapest model that passes validation. Most parts go to Claude Haiku 4.5. The hard ones go to Claude Sonnet 5. When the cheaper model’s answer fails validation, the part gets one escalation to Sonnet, the last rung of every strategy.
That combination costs $1.09 per document. It works, and it is still the primary path: on demand, right now, no machines to start. But a dollar per document, times enough documents, is real money. And on Azure AI Foundry it is sometimes simply hard to get the capacity.
So I tried the other way.
Renting the GPU
RunPod, a neocloud (a cloud that rents only GPUs, by the hour, without the hundred other services of Azure or AWS), for two reasons: the price per hour, and how fast a pod comes up. A large share of the documents is public, there is nothing secret in them, so even community pods (other people’s machines, cheaper) were fine.
The setup is deliberately simple: one machine, one GPU. The models are small enough for one card, so the orchestration lives in my code, not inside the LLM server. A process on one central machine feeds documents to the pods. Need it faster, start more pods. In theory one pod does the whole job, just slower. The pods don’t have to run in sync, and they don’t even have to run on the same hardware.
I did consider the other way around: one machine with n GPUs. But such a machine is harder to find, it is usually not on community pricing, and I lose the fine control over how much is running at any moment. And it would not make a single document faster: one document already runs in parallel, split into n parts.
The price of my way is the setup: every pod has to be set up on its own, start, download the model, load it, and only then does it get work. A machine with n GPUs pays that once.

The inference serving on each pod: vLLM with structured outputs, an RTX PRO 6000 with 96 GB, six documents at once.
The models
The same 40 PDFs, the same pipeline, every model against Claude’s answers:
| Model | $ per document | F1 vs Claude | Median per document |
|---|---|---|---|
| Claude (Haiku 4.5 + Sonnet 5) | 1.09 | reference | |
| Qwen3.8-27B FP8, text | 0.047 | 0.751 | 427 s |
| Qwen3.5-122B-A10B GPTQ-Int4, text + images | 0.055 | 0.750 | 585 s |
| Qwen3.8-Flash-Next NVFP4, text + images, 2 GPUs | 0.058 | 0.757 | 231 s |
$1.09 against $0.047: 23 times cheaper. All three open models land at the same F1, around 0.75. Flash-Next, tensor parallel across two cards, is twice as fast and costs twice as much per hour, so per document it comes out the same.
Before those runs, on one to five documents, I also tried reading the pages as images only: Qwen3.6-27B, Gemma 4 31B and Ovis2.6-30B. Vision alone was about twice as slow as mixing text and images, and not better.
One honest caveat: F1 here is agreement with Claude, not with a person who checked every value. A difference can be Qwen’s mistake or Claude’s.
What surprised me
Nobody can write a number
People insist, fanatically, on their own format for dates and numbers. Then they get it wrong in their own official documents.
One document in English, 23 pages, writes 1.920 and 1.000, with a period as the thousands separator. That is the continental European habit, in an English document. The model read the period as a decimal point: 1.920 became 1.92, 1.000 became 1. A factor of a thousand, in 19 of 37 values, and the status was ok. Claude made the same mistake on two documents.
I don’t blame the models. I regularly can’t tell either whether 1.000 is a thousand or one.
The model was right, the schema was wrong
One model failed validation because a value in the document was not a number. The document says, in words, that there is no value. The model wrote exactly that. Our data model requires a number. The software that produced the document obviously doesn’t.
The model read the document correctly. Our schema just doesn’t describe reality.
GPUs are a hobby of their own
An RTX 5090 ran out of memory. An L40S failed on an old driver. The A40 and A6000 were fine on a light document and nothing else. Community machines are often simply not available, so the runs ended on secure pods at $2.49 an hour. Some pods never came up at all, and I paid for those too.
Six documents per pod is the sweet spot. Eleven choke the server. Lower resolution page images (100 DPI) didn’t save any time.
Tables are hell
Tables are hell, and they always will be. A person looks at a table and sees it: the header, the columns, the unit in the corner, the value that belongs to the row. A machine sees text in the order it was drawn.
The banal first step, converting the PDF to text, is exactly where it goes wrong. Columns get interleaved, merged cells disappear, a header that spans three columns lands above one of them, and a number ends up next to the wrong label. Everything after that step works with a table that no longer exists.
The part of the document with the big tables is the limit for every model. With a 10 minute request limit it failed. With 30 minutes it passed, and the longest document took 1,441 seconds, 24 minutes. Some things a person does so easily, and a machine does so hard.
The hardware at home
I also have a GPU at home: an RTX 4070 SUPER with 12 GB, and I ran models locally too. Twelve gigabytes is the problem. Even two models from my photo app don’t fit on it at the same time.
I wanted an RTX 5090, for research. As a company expense, of course. And I would never use it for anything else.

The company did not feel like paying €6,000 for a graphics card that launched in January 2025 at $1,999. I even looked at the new Mac Studio with the M5 Ultra and 96 GB of unified memory, the same amount of memory as the RTX PRO 6000 on the pod.
The pod with that card costs $1.69 an hour. For the price of the 5090 alone, that is roughly 3,500 hours on a card with three times its memory, with no electricity bill and nothing to depreciate. The whole pilot on RunPod, including the pods that never came up and a day of learning what not to do, cost about $72.
Images are another story
I also ran image models: MOSS-Image on an L40S pod, and Qwen3-VL, SDXL, SegFormer and CLIP locally, on that 12 GB card. Most of them work inside Supernova, my photo app. It picks the best shot from a burst, and then does the whole editing, in the browser.
That is photography, and it deserves its own post.
Where this leaves me
Undecided, for now. It is not build or buy, it is compose. Claude stays the primary path, on demand, working the moment a document arrives. The open-weight models on rented GPUs are for special requests, and for the days when there are a lot of documents.
Twenty-three times cheaper is not a detail. But the hard part was never the price. It was the tables, the numbers and the schema, and those are the same on every model.