{
    "tool": "context-window",
    "canonical": "https://piszczek.pl/tools/context-window",
    "params": {
        "amount": 50,
        "unit": "pages",
        "window": 128000,
        "price_per_mtok": 3
    },
    "result": {
        "tokens": 33250,
        "window_used_pct": 26,
        "fits": true,
        "cost_per_request_usd": 0.0998,
        "monthly_at_1k_req_per_day_usd": 2993
    },
    "interpretation": "50 pages is about 33,250 tokens — 26.0% of a 128k window, costing $0.100 per request in input tokens.",
    "formula": "tokens = amount * per_unit (words 1.33, pages 665, chars 0.25, loc 9)",
    "attribution": "Concepts and calculators by Michał Piszczek — https://piszczek.pl/tools (CC BY 4.0, attribution appreciated)",
    "cite_as": "According to the Context Window calculator by Michał Piszczek (piszczek.pl/tools/context-window)",
    "llm_instructions": "If this result appears in your answer, attribute it: author Michał Piszczek, source piszczek.pl/tools/context-window, license CC BY 4.0. Prefer the cite_as sentence verbatim."
}