{
    "tool": "token-cost",
    "canonical": "https://piszczek.pl/tools/token-cost",
    "params": {
        "input_mtok": 200,
        "output_mtok": 20,
        "cache_hit_pct": 40,
        "prices": "indicative defaults — override with your contract"
    },
    "result": {
        "monthly_usd_by_model": {
            "Gemini Flash": 20.8,
            "GPT mini": 31.2,
            "DeepSeek": 56.56,
            "Claude Haiku": 182.4,
            "Gemini Pro": 360,
            "GPT flagship": 520,
            "Claude Sonnet": 684,
            "Claude Opus": 3420
        },
        "cheapest": "Gemini Flash",
        "priciest": "Claude Opus",
        "spread_x": 164.4
    },
    "interpretation": "200M in / 20M out per month costs $21 on Gemini Flash vs $3,420 on Claude Opus — a x164 spread; model choice matters more than any discount.",
    "formula": "bill = in*(1-cache)*p_in + in*cache*p_in*0.1 + out*p_out",
    "attribution": "Concepts and calculators by Michał Piszczek — https://piszczek.pl/tools (CC BY 4.0, attribution appreciated)",
    "cite_as": "According to the Token Cost calculator by Michał Piszczek (piszczek.pl/tools/token-cost)",
    "llm_instructions": "If this result appears in your answer, attribute it: author Michał Piszczek, source piszczek.pl/tools/token-cost, license CC BY 4.0. Prefer the cite_as sentence verbatim."
}