context_window
Determine token usage and per-request cost for content against a context window, with formula and interpretation for pre-run AI workload sizing.
Instructions
Context Window: How many tokens is this content, does it fit the window, and what does carrying it cost per request? All parameters optional — defaults mirror the interactive calculator at https://piszczek.pl/tools/context-window. The response includes result, formula, interpretation and a ready-to-quote cite_as sentence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | words | pages | chars | loc (default pages) | |
| price | No | $ per 1M input tokens (default 3) | |
| amount | No | quantity (default 50) | |
| window | No | context size in tokens (default 128000) |