Lowering max_tokens can raise LLM API costs by about 15%, developer finds
11/27/2026 — 11/27, 20:17·1 sources (all)·1 reports (all)
Key takeaways
- A DEV Community post argues that setting a low max_tokens value on an LLM API does not save money. Normal answers do not get cheaper, and so…
Background & analysis
On November 27, 2026, a DEV Community post examined a counterintuitive cost problem for developers using LLM APIs: lowering max_tokens does not save money. The article begins with the basics. A token is a chunk of text, roughly three quarters of an English word, and APIs bill per million tokens. Input tokens are what you send, while output tokens are what the model writes, and output tokens are usually the more expensive part of the bill. That leads many developers to a common first idea for cutting costs: set max_tokens low so the model cannot run up the bill.
According to the post, that approach backfires. A tight cap does not make a single normal answer cheaper. Instead, it turns some answers into what the author calls paid garbage, which the user then has to pay for again by asking the question a second time. Based on the author's own estimate, overall costs end up about 15% higher as a result. The article's recommendation is to focus on the cost of retries caused by truncated responses rather than simply lowering the cap. The claim comes from this single developer post; the material contains no response from API providers or other parties.
AI-generated from 1 reports · updated 2 days ago
- Heat index
- 30
- All sources
- 1
- All reports
- 1
- First seen
- 2 days ago
Reports on this story headlines open the original
A DEV Community post argues that setting a low max_tokens on an LLM API does not cut costs: normal answers don't get cheaper, and some replies get truncated into paid garbage you have to pay for twice. The author estimates the practice made good answers roughly 15% more expensive, and points to retry costs as the real thing to watch.
DEV Community · AIAI score 53
Other stories people are talking about
- Heat index 763RisingOpenAI countersues Apple over trade secrets and supplier pressure14 sources
- Heat index 367SurgeAnthropic Denies Claims Claude Sabotages ML Research5 sources
- Heat index 293Musk says Google is interested in renting more compute from SpaceX5 sources
- Heat index 166RisingGoogle ships Workspace MCP servers and CLI, mandating agent access path2 sources
- Heat index 166Claude Code adds /ship command for automated PR review3 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

