Aller au contenu principal
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 claude

Estimated Session Cost (24 turns, 85% cache hit)

Model / EndpointWindowFull Repo FitEst. Session Spend
DeepSeek V4.1 Flash Uncensored
$0.26 / $0.045 / $1 per 1M
1,048,576Fits$1.50
DeepSeek V4.1 Flash Uncensored Fast
$0.28 / $0.055 / $1.12 per 1M
1,048,576Fits$1.72
GLM-5.3 Flash Uncensored
$0.3 / $0.065 / $1.12 per 1M
1,048,576Fits$1.94
GLM-5.3 Uncensored
$1.35 / $0.25 / $4.2 per 1M
1,048,576Fits$8.01
Kimi K3.1 Pro Uncensored
$1.95 / $0.28 / $6.9 per 1M
1,048,576Fits$10.3
Claude Sonnet API (200K Standard)
$3.00 / $0.30 / $15.00 per 1M
200,000Over limit$13.8
Frontier GPT API Reference (128K)
$2.50 / $1.25 / $10.00 per 1M
128,000Over limit$27.6

More Free Developer Tools

Estimate uses ~11 tokens per source line including whitespace and path framing.