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

GLM-4.5-AirX 用量账单计算器

这页把 智谱 / Z.AI 公布的 GLM-4.5-AirX 单价放进可改用量的计算器。单价来自官方价表,改输入、输出和每日调用次数后,单次、单日、30 天费用会跟着重算。

单次$0.002225
每日$4.4500
30 天$133.50
项目取值
模型GLM-4.5-AirX
档位文本
输入单价$1.1 / 百万 tokens
输出单价$4.5 / 百万 tokens
缓存读单价$0.22 / 百万 tokens
单次输入1000 tokens
单次输出250 tokens
每日调用2000 次
单次费用$0.002225
每日费用$4.45
30 天费用$133.5

Python

INPUT_PER_M = 1.1
OUTPUT_PER_M = 4.5
CACHE_READ_PER_M = 0.22

INPUT_TOKENS = 1000
OUTPUT_TOKENS = 250
CALLS_PER_DAY = 2000

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("USD", once, day, month)

JavaScript

const inputPerM = 1.1;
const outputPerM = 4.5;
const inputTokens = 1000;
const outputTokens = 250;
const callsPerDay = 2000;

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("USD", once, day, month);

HTML

<form id="bill">
  <p>GLM-4.5-AirX 官方单价计算器</p>
  <label>输入 tokens <input name="input_tokens" type="number" value="1000" /></label>
  <label>输出 tokens <input name="output_tokens" type="number" value="250" /></label>
  <label>每日调用 <input name="calls" type="number" value="2000" /></label>
  <output id="result"></output>
</form>
<script>
  const inputPerM = 1.1;
  const outputPerM = 4.5;
  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>

单价出处:智谱 / Z.AI 官方价表

GLM-4.5-AirX 官方单价计算器:每日 2000 次,输入 1000、输出 250 · GrokCode 倍率榜