官方单价计算器 · 官方价表

Baichuan-M2-Plus 用量账单计算器

百川大模型增强版,平衡性能与成本,支持中等长度上下文,适用于通用对话与知识问答场景。

单次¥0.400000
每日¥2.0000
30 天¥60.00
项目取值
模型Baichuan-M2-Plus
档位32k
输入单价¥10 / 百万 tokens
输出单价¥30 / 百万 tokens
缓存读单价—
单次输入16000 tokens
单次输出8000 tokens
每日调用5 次
单次费用¥0.4
每日费用¥2
30 天费用¥60

Python

INPUT_PER_M = 10
OUTPUT_PER_M = 30
INPUT_TOKENS = 16000
OUTPUT_TOKENS = 8000
CALLS_PER_DAY = 5

def cost(tokens: int, per_m: float) -> float:
    return tokens / 1_000_000 * per_m

once = cost(INPUT_TOKENS, INPUT_PER_M) + cost(OUTPUT_TOKENS, OUTPUT_PER_M)
day = once * CALLS_PER_DAY
month = day * 30
print("CNY", once, day, month)

JavaScript

const inputPerM = 10;
const outputPerM = 30;
const inputTokens = 16000;
const outputTokens = 8000;
const callsPerDay = 5;

function cost(tokens, perM) {
  return (tokens / 1000000) * perM;
}

const once = cost(inputTokens, inputPerM) + cost(outputTokens, outputPerM);
const day = once * callsPerDay;
const month = day * 30;
console.log("CNY", once, day, month);

HTML

<form id="bill">
  <p>Baichuan-M2-Plus 官方单价计算器</p>
  <label>输入 tokens <input name="input_tokens" type="number" value="16000" /></label>
  <label>输出 tokens <input name="output_tokens" type="number" value="8000" /></label>
  <label>每日调用 <input name="calls" type="number" value="5" /></label>
  <output id="result"></output>
</form>
<script>
  const inputPerM = 10;
  const outputPerM = 30;
  function cost(tokens, perM) { return tokens / 1000000 * perM; }
  const form = document.getElementById("bill");
  function render() {
    const data = new FormData(form);
    const once = cost(Number(data.get("input_tokens")), inputPerM)
      + cost(Number(data.get("output_tokens")), outputPerM);
    document.getElementById("result").textContent = String(once * Number(data.get("calls")));
  }
  form.addEventListener("input", render);
  render();
</script>

单价出处:百川 官方价表

Baichuan-M2-Plus 官方单价计算器:每日 5 次,输入 16000、输出 8000 · GrokCode 倍率榜