You're spending hundreds on structured generation and you have no idea which fields cost what. tokstat reads your JSON corpus, tokenizes every field, and shows you exactly where the money goes.
See exactly how many tokens each field costs — avg, p50, p95 across your entire corpus. Estimated dollar cost per model.
Find fields that are null 60%+ of the time. You're paying for the field name and null literal every time — pure waste.
Field names, braces, brackets, colons, commas — structural tokens you pay for every instance. tokstat shows exactly how much.
Arrays of objects repeat every field name per item. 5 items with 8 fields = 40 field names. tokstat quantifies the cost.
Switch between models instantly. Live pricing from OpenRouter. See how costs change from GPT-4o to Claude to Gemini.
Mixed-schema corpus? tokstat auto-detects schema variants and lets you analyze them separately or combined.
Area shows relative cost. Click any field to drill into its children. Switch views to spot different patterns.
tokstat scans your schema and flags the highest-impact optimization opportunities — no manual analysis needed.
Two implementations, built in parallel. Pick one and explore.