The TrustedRouter model ID for GLM 5.4 is z-ai/glm-5.4. You can test the text path with a shell and a TrustedRouter API key in TRUSTEDROUTER_API_KEY. Keeping this first call small makes it easier to tell a configuration error from an answer-quality issue.
curl --fail-with-body https://api.trustedrouter.com/v1/chat/completions \
-H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"z-ai/glm-5.4","messages":[{"role":"user","content":"Convert this issue into one acceptance test: a free order must still produce a receipt."}],"max_tokens":512}'
What a successful response tells you
Read the assistant message in the first choice. A useful acceptance test creates an order totaling zero and asserts that a receipt exists for that order. “The total should be zero” checks the setup and misses the behavior that broke. Keep the test as a fixture so future model or prompt changes can be scored on the same requirement.
Inspect the response’s usage fields alongside the answer. A truncated response can mean the output allowance was exhausted. An authentication or model-ID error happens before that quality check and calls for a configuration fix.
For a screenshot workflow, keep the successful text call as a control. Add one image and ask for one observable fact, such as the label on a disabled button. If text works but the image request fails, inspect the input encoding and the selected provider’s image support before changing the prompt. GLM 5.4 screenshot evaluation
Z.ai model guide · GLM 5.4 routes and prices · Amazon Ergo vs GLM 5.4