Token Diet
Free prompt token counter and optimizer - cut LLM API costs
Token Diet launched on June 26, 2026 with 2 votes.
What it does
Token Diet is a free, open-source tool that counts tokens in any prompt and optimizes it to use fewer tokens - lowering the cost of LLM and AI API calls. Runs entirely client-side with no login and no data leaving the page. Built by the Ranker team.
Free prompt token counter and token optimizer from Ranker. Reduce LLM tokens, cut AI API costs, lower OpenAI and Claude costs, and slim bloated prompts in your browser.
Trim the fat from your prompts. Same instructions, fewer tokens, a smaller AI bill. Every token costs money and eats your context window. Bloated prompts quietly burn budget at scale, especially anything you run thousands of times. The normal diet runs in your browser. Prompt Lock is optional and uses your own OpenRouter key. Optional AI pass with DeepSeek V4 Flash on OpenRouter. Your key is only used for this request and is not stored by Ranker. Local mode never sends your prompt anywhere. If you use Prompt Lock, your prompt goes directly from this browser to OpenRouter with your own key. Token Diet only trims filler and verbose phrasing, it never changes your actual instructions, so…from ranker.co.za
Does a similar job
all alternatives →
Diet ClaudeAug 2026 · dietclaude.com · ▲433Diet Claude — a usage meter for Claude that drains as you go and refills when your session resets. Crack open the can — free on the Chrome Web Store.

Token price calculator for 400+ LLMs2024 · github.com · ▲268Hey HN! Tokencost is a utility library for estimating LLM costs. There are hundreds of different models now, and they all have their own pricing schemes. It’s difficult to keep up with the pricing changes, and it’s even more difficult to estimate how much your prompts and completions will cost until you see the bill. Tokencost works by counting the number of tokens in prompt and completion messages and multiplying that number by the corresponding model cost. Under the hood, it’s really just a simple cost dictionary and some utility functions for getting the prices right. It also accounts for…



More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 20d ago · stillwet.art
PixVerse R2▲381A real-time world model you can explore and change
AI · 29d ago · world.pixverse.video

Source: Product Hunt launch ↗
Launched alongside, June 2026
the whole month →
Fundraisly▲1,537AI fundraising agent that finds investors and books meetings
AI · Jun 2026 · fundraisly.com
Homebrew 6.0.0▲1,481Today, I’m proud to announce Homebrew 6.0.0. The most significant changes since 5.1.0 are a new tap trust security mechanism, the new faster, smaller, default internal Homebrew JSON API, sandboxing on Linux, better defaults informed by our user survey, many brew bundle improvements, improved performance and initial support for macOS 27 (Golden Gate). Happy to discuss any questions here!
Dev tools · Jun 2026 · brew.sh

Hi HN! I was super frustrated at apps like tiktok and wechat preventing me from saving or downloading the animated gifs, so I made a little tool to turn a screen recording into a slack-sized emoji. Hope you get some value from this!
Life & fun · Jun 2026 · vorpus.github.io



Search 18 years of Hacker News and chart how any topic, tool, or person trended. Overlay terms to compare their rise and fall across 45M posts and comments.
Life & fun · Jun 2026 · hackernewstrends.com