LLM API pricing: how to actually cut your bill

How pricing works, where the value tiers sit, and six immediate savings.

Reading the price sheet

Input and output tokens price separately, output usually several times higher; reasoning traces count as output, so deep-thinking modes cost visibly more. Normalize to per-million tokens and compare input/output separately.

Six ways to save

① Route by difficulty — cheap models for easy calls, flagships only when needed; ② enable prompt caching for repeated system prompts; ③ cap max_tokens; ④ trim system prompts and few-shot examples; ⑤ use batch/async discounts; ⑥ compare and switch via OpenRouter.

中文

大模型 API 价格对比:怎么把成本降下来

计价方式、各档模型的性价比区间,以及六个立竿见影的省钱技巧。

计价怎么看

API 按输入/输出 token 分别计价,输出通常贵数倍;推理模型的"思考过程"也算输出 token,所以深度思考模式账单会明显更高。比价时统一折算成"每百万 token"并区分输入输出,别只看一个数字。

六个省钱技巧

① 分级路由:简单任务用小模型/廉价模型(DeepSeek、Qwen 小尺寸),难任务才上旗舰;② 开启提示词缓存,重复的系统提示词大幅降价;③ 限制 max_tokens;④ 精简系统提示词与 few-shot 示例;⑤ 批量任务用异步/批处理折扣;⑥ 用 OpenRouter 统一比价与切换。

Keep reading / 继续阅读