A client once asked me which LLM to use for their document pipeline, and then showed me a spreadsheet. Forty-one models, ranked by twelve benchmarks, color-coded. Beautiful work. Completely useless, because their actual question was much simpler: can something read a blurry scanned invoice and reliably pull out six fields without hallucinating a vendor named "Table"?

Benchmark scores don't answer that. Your own data does. Learning how to choose an LLM API is mostly about unlearning the idea that there's a leaderboard answer, and replacing it with a framework based on the shape of your task.

Choosing an LLM API comes down to four variables: task fit, cost at your volume, latency under your load, and data policy — and you can test all four in a single afternoon with twenty real examples. The big hosted models (Claude, GPT, Gemini) are all excellent at different shapes of work, and open weights win in specific, predictable situations. What follows is the field guide I actually use.

Benchmark Theater vs. Your Actual Task

Public benchmarks measure how well a model answers exam questions. Your product doesn't answer exam questions. It extracts line items, drafts renewal emails in your company's voice, triages support tickets, or writes SQL against a schema only you have.

The gap matters. A model that wins on reasoning benchmarks might mangle your invoice layout, and a "weaker" model might nail it because its vision pipeline handles skewed scans better. The only benchmark that predicts your results is a benchmark made of your documents, which is why the eval section later in this guide is the part to copy.

So before comparing providers, write down your task shape in one sentence: input type, output type, and how wrong is too wrong. Everything else follows from that.

The Four Variables That Actually Matter

Task fit. Is this extraction, drafting, reasoning, or code? Models genuinely differ here, and the difference is stable across releases. Match the model to the shape, not the hype cycle.

Cost at your volume. Price per million tokens is meaningless until you multiply it by your real usage. A rough sketch: if a task burns 2,000 tokens per call and you run 50,000 calls a month, that's 100 million tokens, and the difference between a frontier model and a mid-tier one can be four figures a month. Do this arithmetic before falling in love with anything.

Latency under your load. A model that's snappy in the playground can crawl at 9 a.m. when your whole team hits it. If a human is waiting on the response, test with concurrent calls, not single ones.

Data policy. Some clients legally cannot send certain data to any third party, full stop. That answer selects your architecture before you've compared a single model. Notice that raw model IQ is fifth on this list. At the frontier, the models are closer in ability than the marketing wants you to believe.

The Big Three: Honest Field Notes

Opinions here age fast, so take these as a snapshot, not scripture.

Claude tends to be my default for long-document work and careful instruction-following; it's strong at staying inside the lines when you give it strict output formats, which matters enormously for pipelines that feed other software. GPT has the broadest ecosystem, mature tool-calling, and the largest pool of developers who've already solved your integration problem. Gemini brings genuinely long context windows and strong multimodal handling, plus pricing that's often aggressive enough to change your cost math.

All three will draft a decent email. The differences show up at the edges: weird file formats, strict schemas, adversarial inputs, and scale. Any of them can anchor a serious build, which is why the rest of your FDE stack essentials (orchestration, storage, monitoring) usually matters more than the logo on the API key, and it's where the real durability lives.

When Open Weights Win

Self-hosting an open-weight model stops being a hobby project in three situations. First, the privacy-hardline client: healthcare, legal, defense-adjacent work where data simply may not leave the building. Second, predictable high volume: if you're running millions of similar calls a month, a rented GPU running a fine-tuned small model can undercut API pricing by an order of magnitude. Third, deep specialization: when you've fine-tuned a model on ten thousand of your own examples, it can beat a frontier model on your exact task while being cheap enough to run recklessly.

The catch is operational. You now own uptime, scaling, and the 3 a.m. pager. An illustrative break-even: below roughly a few hundred thousand calls a month, hosted APIs win on total cost once you price in the engineer hours. Past that, start doing the self-hosted math. This is the same build-vs-buy logic behind the n8n versus custom code decision, just with GPUs.

How to Choose an LLM API in One Afternoon

Here's the whole trick. Take twenty real examples from your actual workflow: real invoices, real tickets, real emails, including the ugly ones. Write down what a perfect output looks like for each. Then run all twenty through two or three candidate models and score the results yourself, 0 to 2 per example: wrong, usable with edits, or shippable.

Ninety minutes later you have something no blog post can give you: a scoreboard built from your own risk. I've watched this exercise end months of committee debate in a single meeting, because arguing about benchmark charts is fun and arguing about "it hallucinated our biggest customer's name" is not.

One more implementation detail that saves you later: wrap the API call in a thin internal interface from day one, so swapping providers is a config change. The teams that get hurt by model churn are the ones who hard-coded one provider's quirks into forty places. Good LLM ops for small teams is mostly unglamorous: logging, a prompt registry, an abstraction layer, and the discipline to keep all three boring.

The Answer Is Almost Never One Model

Mature setups route. A cheap, fast model triages and classifies; the expensive one handles the judgment calls; a specialized model does the one weird task it's fine-tuned for. Think of it like staffing: you don't pay senior rates for someone to sort the mail.

Routing also future-proofs you. When next quarter's model releases drop, breathlessly, on a Tuesday, you evaluate the newcomer on your twenty examples, update the router config, and move on with your life. Once you know how to choose an LLM API by task shape instead of hype, the decision stops being a bet-the-company moment and becomes what it should have been all along: a quarterly procurement chore with a test suite.