A button with width: 100% can be 352px wide inside a 320px form. That's a useful bug to give a coding model: you can check its answer before applying its patch. Some in the community had guessed GLM-5.5, but Z.ai released GLM-5.4 on November 23, 2026. On the GLM Coding Plan, the base model now takes screenshots. For a diagnosis from the CSS alone, AIHubMix serves it as coding-glm-5.4.
Send the CSS to Chat Completions
Install the OpenAI Python SDK with python -m pip install openai and set AIHUBMIX_API_KEY to your AIHubMix key (quick start). Save this as check_width.py and run python check_width.py. It sends only text to POST /v1/chat/completions.
import os from openai import OpenAI client = OpenAI( base_url="https://aihubmix.com/v1", api_key=os.environ["AIHUBMIX_API_KEY"], ) reply = client.chat.completions.create( model="coding-glm-5.4", messages=[{ "role": "user", "content": ( "A form's content box is 320px wide. Its button has this CSS: " "button { width: 100%; padding: 0 16px; border: 0; box-sizing: content-box; } " "How wide is the button including padding? Change one declaration to make it fit." ), }], ) print(reply.choices[0].message.content) With content-box, the button's content alone takes up all 320px. There's no border, so its total width with padding is 320 + 16 + 16 = 352px. Change box-sizing: content-box to box-sizing: border-box and the 16px of padding on each side fits inside the declared 320px. These are the widths the CSS predicts, not a recorded GLM-5.4 response.
Check the overflowing edge on the Coding Plan
Select glm-5.4 in your Zhipu plan. Attach a screenshot of the broken checkout form along with the button's CSS and ask which edge overflows. If the model identifies the edge you can see, ask which declaration it would change. Render the patch at the original viewport width to see whether the button fits.
In the Coding Plan picker pictured by IT Home, base GLM-5.3 and GLM-5.4 both have the 1M context label. Vision is new to the base model; GLM-5.3-Flash already had both. The AIHubMix channel guide lists image input but doesn't mark vision as verified on this channel. The width calculation doesn't exercise vision. If you need screenshots through the gateway, test with an image whose contents you know.
Which key pays for the call?
All GLM Coding Plan users can select GLM-5.4. For users with weekly quotas, GLM-5.4 gets 50% more quota than GLM-5.3; the operations notice names V2, V3 and Team. To count usage against your subscription, configure the matching personal or team plan key in your tool. Under BigModel's key rules, a newly issued standard API key bills at standard rates even on a subscribed account.
The Python example uses an AIHubMix key, so that weekly allowance doesn't apply. AIHubMix listed these rates for coding-glm-5.4 on November 23, 2026 at 05:49 UTC. BigModel's pay-as-you-go price list didn't quote a GLM-5.4 rate when checked on November 23.
| Token type | USD per million tokens |
|---|---|
| Uncached input | $0.06 |
| Cached input | $0.015 |
| Output | $0.22 |
For example, 100,000 uncached input tokens cost $0.006. Generating 10,000 output tokens adds $0.0022, for a total of $0.0082. That example assumes no cache hits; the token counts don't come from the CSS prompt.
Sources
- GLM-5.4 launch announcement: Z.ai's Zixuan Li on plan access and quota.
- Coding Plan notice and model picker: IT Home's copy of the plan details.
- BigModel API key management: which keys use the subscription.
- Coding GLM 5.4 on AIHubMix: gateway model ID and rates.
- AIHubMix channel guide: endpoint and image-input status.
Keep reading
Test GLM-5.4 on a 32px checkout overflow, with and without a screenshot