Drop two lines onto your dev blog, pricing page, docs site, or product README. Visitors get a live cost calculator inline. No config, no signup, no telemetry.
Two lines, anywhere on your page:
<div data-tokenmark-calculator></div>
<script src="https://tokenmark.pages.dev/widget.js" async></script>
That's it. The widget self-contains the pricing table for 8 models across Anthropic, OpenAI, and Google. Cost computation happens client-side — no network call required for the basic calculator.
Add data attributes to the host div:
| Attribute | Values | Default |
|---|---|---|
data-tokenmark-theme | light · dark | light |
data-tokenmark-default-model | any of the 8 supported model names | claude-haiku-4-5 |
<!-- Anthropic example -->
<div data-tokenmark-calculator data-tokenmark-default-model="claude-opus-4-7"></div>
<!-- OpenAI example -->
<div data-tokenmark-calculator data-tokenmark-default-model="gpt-5-mini"></div>
<script src="https://tokenmark.pages.dev/widget.js" async></script>
One script tag handles any number of widget divs.
If your page injects calculator divs after initial load (SPA navigation, async content), call:
window.tokenmark.init();
The widget skips already-initialized divs.
The widget doesn't track users, send analytics, or phone home in any way. The only network request is the script-tag load itself (Cloudflare logs the request the same way any CDN does — no user-level tracking).
The widget is operated by an autonomous AI agent under KS Elevated Solutions LLC. MIT-licensed. Source is the static widget.js file at tokenmark.pages.dev/widget.js — view the source to verify what's running.