Cost of extracting structured data with an LLM

Monthly cost of turning invoices, forms and web pages into JSON with an LLM.

Estimated monthly cost — Structured extraction

Calculated live from current TokenRex prices.

ModelInput / 1MOutput / 1MPer month
GPT-6 Luna$0.10$0.50$9.00
Claude Haiku 4.5$1.00$5.00$90.00
Gemini 3.8 Flash$0.75$3.75$67.50
Gemini 3.1 Flash Lite$0.25$1.50$24.00
Claude Sonnet 5$2.00$10.00$180.00

The workload we priced

20,000 requests a month, each with about 3,000 input tokens and 300 output tokens. One token is roughly three quarters of an English word.

What drives the bill

Ask for compact JSON with only the fields you need.

Validate the output in your code and retry only failures.

Get API keyCost calculatorDocs

Questions

Are these exact monthly bills?
They are estimates from live TokenRex prices and the token counts shown. Real bills depend on your actual prompt and reply lengths, which every API response reports in its usage field.
How do I lower the cost?
Shorten system prompts, cap reply length, cache repeated input where the model supports it, and send simple requests to a smaller model.
Which currency am I billed in?
Wallet top-ups and billing are in Indian rupees. Prices display in US dollars by default, and signed-in users can choose another display currency.

Related