Amazon Ergo and GLM 5.4 pricing per million tokens, with worked examples

Estimate a coding job with ordinary input, cached input and output. Compare the two Amazon Ergo catalog listings with GLM 5.4.

A price per million input tokens answers only part of the budget question. A code-review request can have a large repeated prefix and a tiny response. A code-generation request can reverse that ratio. The following USD rates are a December 2, 2026 snapshot of the TrustedRouter model catalog.

Catalog ID Fresh input / 1M Cached input read / 1M Output / 1M
amazon/ergo $1.055 $0.03165 $3.165
amazon-fmr/ergo $1.00225 $0.100225 $3.11225
z-ai/glm-5.4 $1.477 $0.2743 $4.642

Price a single review

For 10,000 fresh input tokens and 1,000 output tokens on amazon/ergo, the arithmetic is 0.01 × $1.055 + 0.001 × $3.165 = $0.013715. The same counts on GLM 5.4 cost $0.019412. A thousand identical requests would be about $13.72 and $19.41 respectively, before any differences in actual output length or route selection.

Now suppose 8,000 of the 10,000 input tokens qualify as cache reads on the selected Ergo route. Count 2,000 fresh input, 8,000 cached input and 1,000 output: 0.002 × $1.055 + 0.008 × $0.03165 + 0.001 × $3.165 = $0.0055282. The provider’s reported cached-token count determines whether the discount applies. Reusing a prompt alone does not establish a hit.

Compare the two Ergo listings on your workload

The FMR listing has a lower fresh-input rate in this snapshot, while the other listing has a lower cache-read rate. Use real usage counts and inspect provider features before choosing between them. The cost of a completed job also includes requests discarded after a failed test. Amazon Ergo routes and prices · Ergo FMR listing · GLM 5.4 routes and prices · Amazon Ergo vs GLM 5.4