1. Paste the snippet
<iframe
src="https://freetokencounter.com/widget"
style="width:100%;max-width:680px;height:430px;border:1px solid #e5e5e5;border-radius:12px;"
title="Free Token Counter"
loading="lazy"></iframe>
Want it preset to a specific model? Add ?model=<model-id> to the src, for example
/widget?model=claude-opus-4.8. Model ids are listed in the
pricing API.