项目
在 GitHub 查看
fujc683/cheap-llm-api
关于
Every LLM on APIMart ranked by price, plus a two-tier routing pattern.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Cheap LLM API — price per million tokens, ranked
Every LLM on APIMart ranked by cost, plus a two-tier routing pattern that cuts bills ~70%.
https://gola.apimart.ai/k-KvaHgX
Cheapest capable LLMs, ranked
| Model | Input /1M | Output /1M | Best for |
|---|---|---|---|
| DeepSeek V3.2 | $0.14 | $0.28 | bulk classification, extraction |
| Qwen3.7 Flash | $0.15 | $0.60 | cheap chat |
| Step 3.7 Flash | $0.15 | $0.93 | tool calling |
| Qwen3.8 Max | $1.37 | $4.11 | harder reasoning |
| Qwen4 Max | $1.43 | $4.29 | hardest reasoning, Chinese |
How to cut LLM spend
- Route by difficulty — cheap model first, escalate on low confidence
- Cache the stable prefix — system prompts are re-billed every call
- Cap reasoning —
max_tokenslimits the thinking budget too - Batch — 1,000 small calls cost more than 10 batched ones
Two-tier routing pattern
def answer(q):
cheap = call("deepseek-v3.2", q)
if cheap.confidence > 0.8:
return cheap
return call("qwen4-max", q)
Typical split: 80% cheap, 20% strong → ~70% lower bill than always-strong.
Cost of a real workload
| Workload | Model | Monthly cost |
|---|---|---|
| 1M classify calls | DeepSeek | $42 |
| 100K support replies | Qwen4 Max | $98 |
| 10K agent runs | Qwen4 Max | $137 |
Related
- All prompt collections: fujc683 repositories
License
CC BY 4.0
探索相关项目
加载中…