Cost of long-context requests (100K+ tokens)

Price of sending very long documents or code bases in a single request.

Estimated monthly cost — Long-context request

Calculated live from current TokenRex prices.

ModelInput / 1MOutput / 1MPer month
Gemini 4 Argon$2.00$10.00$157.50
Gemini 3.8 Flash$0.75$3.75$59.06
Claude Sonnet 5$2.00$10.00$157.50
GPT-6 Sol$2.00$10.00$157.50

The workload we priced

500 requests a month, each with about 1,50,000 input tokens and 1,500 output tokens. One token is roughly three quarters of an English word.

What drives the bill

A single 150K-token request costs as much input as 100 short ones.

Reuse the same long prefix with caching when asking several questions.

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