Get alerts
AiGanak
Book a call
Cost engineering

Cheapest LLM API for high-volume classification and extraction

Key takeaways
  • For short classification jobs the cheapest models are GPT-6 Luna and Claude Haiku 5.5 at $0.10 input and $0.50 output per million tokens: 1,000,000 classifications of 400 input tokens cost $45 a month, against $900 on GPT-6.1 Sol or Claude Sonnet 5.5, which is 20 times more.
  • Output price matters more for extraction than for classification. A label is a few tokens, but extracted JSON runs to hundreds, so output is 11% of the Luna bill for classification and 43% for extraction. Gemini 3.5 Flash-Lite, with a $2.50 output price, costs 3.2 times Luna on classification and 3.9 times on extraction.
  • Batch processing halves any of these numbers for work that can wait up to a day. Classification of 1,000,000 items on Luna drops from $45 to $22.50.
  • The cheapest model is only cheap if it is accurate enough. A cascade, where the small model answers everything and only the uncertain 10% go to a mid-size model, costs $135 instead of $900: 85% less than running everything on the mid-size model.

Classification and extraction are the quiet giants of an LLM bill. Tagging support tickets, routing emails, flagging policy violations, pulling invoice fields into JSON: each request is small, but there are hundreds of thousands of them a month, and every one is sent to whichever model the team picked on day one. This guide prices that kind of work on the current small and mid-size models from OpenAI, Anthropic and Google, shows what batch processing and a simple cascade change, and explains how to check that a cheaper model is good enough before you move. All prices are US dollars per million tokens, taken from each provider's own pricing page on 9 November 2026. The workloads are illustrations, not measurements of your traffic.

Why these jobs are different

Three properties make classification and extraction the best place to cut cost.

  • The task is narrow. Choosing one of twelve labels or copying an invoice number does not need a flagship model's reasoning. Small models are built for exactly this.
  • Prompts are short and outputs are tiny. A classification call might send 400 tokens and get back 10. Cost is almost entirely the input price, so the cheapest input price wins.
  • Nobody is waiting. Most of this work runs on stored records, so it qualifies for the half-price batch tier. Our batch API guide covers how that works.

Extraction is the same idea with a bigger prompt (the document) and a bigger output (the fields as structured text), which changes which price matters, as the examples below show.

Price per million tokens

ModelInputOutputNote
GPT-6 Luna or Claude Haiku 5.5$0.10$0.50Same list price. Haiku 5.5 charges more for prompts over 100,000 tokens.
Gemini 3.5 Flash-Lite$0.30$2.50No change announced at the time of checking.
Gemini 3.8 Flash$0.75$3.75Doubles on 1 January 2027 to $1.50 and $7.50.
GPT-6.1 Terra or Claude Haiku 4.5$1.00$5.00Haiku 4.5 is the previous generation.
GPT-6.1 Sol or Claude Sonnet 5.5$2.00$10.00The usual mid-size default.

Batch prices are exactly half of each standard price on all three providers. The full list, including cached-input and long-prompt rates, is in the pricing calculator.

Classification: 1,000,000 items a month

Take a ticket-routing job: 1,000,000 requests a month, each with 400 input tokens (instructions plus the ticket) and 10 output tokens (the label).

1,000,000 classificationsStandard APIBatch
GPT-6 Luna or Claude Haiku 5.5$45$22.50
Gemini 3.5 Flash-Lite$145$72.50
Gemini 3.8 Flash (until 31 Dec 2026)$337.50$168.75
GPT-6.1 Terra or Claude Haiku 4.5$450$225
GPT-6.1 Sol or Claude Sonnet 5.5$900$450

One classification costs $0.045 per thousand on Luna or Haiku 5.5, $0.145 per thousand on Flash-Lite, $0.45 on Terra or Haiku 4.5 and $0.90 per thousand on Sol or Sonnet 5.5. The mid-size default is 20 times the price of the small model for a task that may not need it. Two cautions: when Gemini 3.8 Flash doubles in January the same job rises from $337.50 to $675, and output is only 11% of the Luna bill here, so the input price decides the ranking.

Extraction: 200,000 documents a month

Now an invoice-extraction job: 200,000 documents a month, each with 2,000 input tokens and 300 output tokens of JSON.

200,000 documentsStandard APIBatch
GPT-6 Luna or Claude Haiku 5.5$70$35
Gemini 3.5 Flash-Lite$270$135
Gemini 3.8 Flash (until 31 Dec 2026)$525$262.50
GPT-6.1 Terra or Claude Haiku 4.5$700$350
GPT-6.1 Sol or Claude Sonnet 5.5$1,400$700

Per thousand documents that is $0.35 on Luna or Haiku 5.5, $1.35 on Flash-Lite, $3.50 on Terra or Haiku 4.5 and $7.00 on Sol or Sonnet 5.5. Output is 43% of the Luna bill here, because 300 tokens of JSON cost far more than a 10-token label. That is why Flash-Lite, with its $2.50 output price, falls further behind: 3.2 times Luna on classification becomes 3.9 times on extraction. If your extraction returns long text, compare output prices first. If it returns a few short fields, tighten the output format: asking for only the fields you need, with short keys, directly lowers the biggest line of the bill.

The cascade: small model first

The usual objection to a small model is accuracy on the hard cases. The answer is not to buy the expensive model for everything but to send it only what the small model is unsure about. Run every item through the small model and ask it to return a confidence or an "unsure" label; escalate only those items to a mid-size model.

On the classification job above, suppose 10% of the items are escalated. Luna handles all 1,000,000 ($45) and Sol or Sonnet 5.5 handles 100,000 of them ($90), a total of $135 a month against $900 for running everything on the mid-size model. That is 85% less, and the hard cases still get the stronger model. The escalation share is the number to measure: the higher it is, the closer you get to the mid-size bill, so a small model that is confident when it should be is worth more than one that is merely cheap.

Batch, caching and prompt length

Three levers sit on top of model choice. Batch halves the price for anything that can wait up to a day, which is most stored-record work. Caching reduces the price of repeated instructions, but each provider has a minimum prompt length before caching applies (see our prompt caching guide), so a 400-token classification prompt may be too short to benefit; extraction prompts with a long fixed schema are better candidates. Prompt length is the lever teams forget: with input as the dominant cost, trimming a long instruction block or dropping unused few-shot examples cuts the bill in direct proportion.

How to pick without guessing

  1. Build a labelled test set. A few hundred real items with the answer you would accept, including the awkward ones, from your own data.
  2. Run the same set through two or three models. Start with the cheapest small model and one mid-size model as the reference.
  3. Score the difference where it costs you. A wrong label that sends a ticket to the wrong team costs something; an extra manual review costs something else. Put a price on each error type.
  4. Decide with the numbers. If the small model is within your tolerance, switch. If it fails only on a recognisable slice, use the cascade.
  5. Re-check when prices move. Provider prices and model lines change every few months; the calculator uses current list prices.

To see which of your calls are classification or extraction in disguise, upload your usage export to the free Bill Analyzer. If you want your real traffic tested against cheaper models and a ranked plan, that is what the LLM Cost Report delivers.

Sources

  1. OpenAI: Models and pricing (checked 9 November 2026)
  2. Anthropic: Claude API pricing (checked 9 November 2026)
  3. Google: Gemini API pricing (checked 9 November 2026)

Provider prices and limits change often. Figures were checked on 12 November 2026; confirm current terms with each provider before you rely on them.

Free price alerts

Get an email when an LLM price changes

OpenAI, Anthropic and Google change API prices with little notice. We check their pricing pages every week and email you the old price, the new price and the date. Free, a few emails a month at most.

We send a confirmation email first. Unsubscribe in one click. Privacy.

FAQ

Questions about this topic

Can't find it? Press ⌘K and ask.

What is the cheapest LLM API for classification?

At list prices checked 9 November 2026, GPT-6 Luna and Claude Haiku 5.5 are the cheapest of the current models at $0.10 input and $0.50 output per million tokens. For 1,000,000 classifications a month of 400 input and 10 output tokens each, that is $45 on the standard API and $22.50 in batch, against $900 on GPT-6.1 Sol or Claude Sonnet 5.5.

How much does LLM data extraction cost?

For 200,000 documents a month with 2,000 input tokens and 300 output tokens of JSON each, the model bill is $70 on GPT-6 Luna or Claude Haiku 5.5, $270 on Gemini 3.5 Flash-Lite and $1,400 on GPT-6.1 Sol or Claude Sonnet 5.5 (prices checked 9 November 2026). Output is 43% of the Luna bill, so output price and output length matter more for extraction than for classification.

Can a small model handle the hard cases?

Often by escalation. Run every item through a small model, have it flag the items it is unsure about and send only those to a mid-size model. With 10% escalated, 1,000,000 classifications cost $135 a month instead of $900, which is 85% less than using the mid-size model for everything.

Keep reading

Related

LLM API pricing compared: OpenAI, Anthropic and Google

Current list prices per million tokens for GPT-6 Astra, GPT-6.1 Sol, GPT-6 Luna, Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5 and Gemini models, with cached and batch prices, announced price changes and a free cost calculator. Prices are dated and sourced from each provider.

Read →

Batch API guide: halve your LLM costs for work that can wait

Prices checked 29 October 2026: OpenAI's Batch API, Anthropic's Message Batches and Google's Gemini Batch API all charge 50% less on input and output tokens for work returned within 24 hours (GPT-6 Astra $5 input and $25 output, GPT-6.1 Sol and Claude Sonnet 5.5 $1 and $5, Claude Opus 5.5 $2 and $10, GPT-6 Luna and Claude Haiku 5.5 $0.05 and $0.25, Gemini 4 Argon $1 and $5 until 30 November 2026 per million tokens). Limits: 50,000 requests or 200 MB per OpenAI batch, 100,000 requests or 256 MB per Anthropic batch, 2 GB input file on Gemini. Batch stacks with prompt caching, but cache hits inside a batch are best-effort (Anthropic reports 30% to 98%). Worked example: 500,000 monthly requests cost $15,000 on GPT-6 Astra on the standard API and $7,500 in batch.

Read →

Small vs large language models: how to choose for a business task

Small language models of roughly 0.5 to 7 billion parameters suit narrow, high-volume tasks and private deployment on your own hardware, while large API models remain stronger at open-ended reasoning. Most teams end up routing simple requests to a small model and hard ones to a large model.

Read →

Free LLM Bill Analyzer

A free, private tool that analyses an OpenAI or Anthropic usage export privately, shows spend by model and the monthly run rate, and estimates savings from model routing, prompt caching and batch processing. The file is never stored or shared.

Read →

What would your classification volume cost?

Enter your own request counts and token sizes in the free API pricing calculator, or upload your usage export to the Bill Analyzer to see which of your calls could run on a smaller model.