Calculator
Token-Cost Optimizer
LLM trading research loop cost calculator. Prompt length × model × retry × call volume → dollar cost per idea and per validated trade. Browser-only. Free.
- Inputs
- Form inputs / CSV
- Runtime
- Instant
- Privacy
- Client-side · no upload
- API key
- Not required
- Methodology
- Open →
1 · Configure your research loop
Per call
$0.036
Claude Sonnet 4.6
Per idea
$0.205
Per validated trade
$0.684
Per month
$62
Per year
$749
2 · Model comparison at these inputs
| Model | Per call | Per idea | Per month | Per validated trade |
|---|---|---|---|---|
| Gemini 2.5 Flashgoogle | $0.00615 | $0.035 | $11 | $0.118 |
| Claude Haiku 4.5anthropic | $0.012 | $0.068 | $21 | $0.228 |
| Gemini 2.5 Progoogle | $0.025 | $0.144 | $43 | $0.479 |
| GPT-5 miniopenai | $0.028 | $0.161 | $48 | $0.537 |
| Claude Sonnet 4.6anthropicprimary | $0.036 | $0.205 | $62 | $0.684 |
| o4-mini (reasoning)openai | $0.042 | $0.242 | $72 | $0.805 |
| GPT-5openai | $0.140 | $0.805 | $242 | $2.68 |
| Claude Opus 4.7anthropic | $0.178 | $1.03 | $308 | $3.42 |
How the cost flows
effective_call = input × price_in + output × price_out
(Anthropic: cache-hit fraction priced at cache_read)
calls_per_idea = calls × (1 + retry_rate)
cost_per_idea = effective_call × calls_per_idea
cost_per_day = cost_per_idea × ideas_per_day
cost_per_val = cost_per_idea / validation_rate
cost_per_year = cost_per_day × 365Pricing last verified 2026-04-20. See methodology for the full rate table with vendor-page sources.
Complementary tools
Users of this tool often explore
Prompt Regression Tester
Run the same prompt against multiple models (Claude 4.5/4.6/4.7, GPT-5, Gemini 2.5) with your own keys. Diff outputs, score drift, catch regressions before they hit your production agent.
Data-Vendor TCO Calculator
Compute annual cost of market data across Databento, Polygon, Alpaca, Tiingo, FMP, and Alpha Vantage for your exact universe, bar resolution, history depth, and API call volume.
Agent Skill Tester for Markets
Paste a SKILL.md definition + sample input + your Anthropic API key. See structured extraction, token cost, and latency — all in your browser. No signup, key never leaves the page.