If your coding task starts with a screenshot, try GLM 5.4 first. Its TrustedRouter catalog entry accepts images as well as text. If the input is a failing test and a few source files, both models are candidates. Amazon publishes Ergo’s weights, which also makes it an option for teams evaluating self-hosting. AWS model card · Z.ai model guide
| Decision | Amazon Ergo | GLM 5.4 |
|---|---|---|
| TrustedRouter model ID | amazon/ergo |
z-ai/glm-5.4 |
| Input → output in the catalog | Text → text | Text and images → text |
| Listed context window | 1,048,576 tokens | 1,048,576 tokens |
| Example cost for 10,000 fresh input and 1,000 output tokens | $0.01372 | $0.01941 |
The cost example uses December 2 catalog rates and rounds to five decimal places. Provider selection, cache hits and answer length can change what a job costs. For budgets, compare the worked pricing examples with the current listings. Amazon Ergo routes and prices · GLM 5.4 routes and prices
Give both models the same broken function
Suppose an invoice formatter uses total or "missing" in Python. Feed both models the function and ask for the smallest fix that preserves zero and labels only an absent value as missing. An answer that handles zero but still labels an empty string as missing has quietly introduced a second rule. Check the cases yourself before comparing the prose.
Record whether the patch passes, how many attempts it took and the time to the first usable patch. If one model needs three retries, its lower token price may buy a more expensive fix. Repeat with a task from your own backlog before changing the default. Ergo API quickstart · GLM 5.4 API quickstart
For deployment and longer inputs, see Bedrock or self-hosted Ergo, the million-token context test, and GLM screenshot testing.
For an Ergo trial, try the pagination code review or customer release-note exercise. For private text inference, see how to pin Ergo to Maple and Maple’s Amazon Ergo guide.