1M Context Window Planner
How Much of Your Repo Fits in 1M Tokens?
Estimate total source-code tokens from file count and lines per file, verify whether your codebase fits natively in 1,048,576 tokens without chunk-dropping, and compare prompt-cached session cost.
Codebase Scale Preset
Window Fit Summary
792Ktokens (72,000 LOC)
75.5% of 1,048,576 token window
bf16.ai (1M / 1,048,576)Fits Whole Repo
200K Context WindowTruncated / Compaction
128K Context WindowTruncated / Drops Files
Get API Key ($0.20 Starter Credit)
Zero-touch Claude Code launcher (1M context ready)
npx bf16ai claudeEstimated Session Cost (24 turns, 85% cache hit)
| Model / Endpoint | Window | Full Repo Fit | Est. Session Spend |
|---|---|---|---|
DeepSeek V4.1 Flash Uncensored $0.26 / $0.045 / $1 per 1M | 1,048,576 | Fits | $1.50 |
DeepSeek V4.1 Flash Uncensored Fast $0.28 / $0.055 / $1.12 per 1M | 1,048,576 | Fits | $1.72 |
GLM-5.3 Flash Uncensored $0.3 / $0.065 / $1.12 per 1M | 1,048,576 | Fits | $1.94 |
GLM-5.3 Uncensored $1.35 / $0.25 / $4.2 per 1M | 1,048,576 | Fits | $8.01 |
Kimi K3.1 Pro Uncensored $1.95 / $0.28 / $6.9 per 1M | 1,048,576 | Fits | $10.3 |
Claude Sonnet API (200K Standard) $3.00 / $0.30 / $15.00 per 1M | 200,000 | Over limit | $13.8 |
Frontier GPT API Reference (128K) $2.50 / $1.25 / $10.00 per 1M | 128,000 | Over limit | $27.6 |
More Free Developer Tools
Coding Agent Monthly Cost Calculator
Compare monthly Claude Code, Cursor & Codex spend
OpenAI / Anthropic to bf16.ai Code Converter
Generate cURL, Python, TS, Go, Rust & CLI snippets
Estimate uses ~11 tokens per source line including whitespace and path framing.