Choosing this model
Selection advice by Y-API. The checks below are suggested evaluations, not published test results.
Where to start
Evaluate it for staged migrations where earlier constraints must survive several steps: schema changes, backfills, dual writes and eventual cleanup. Ask it to identify the rollback boundary at each stage.
What to watch for
A large context is not persistent memory. Your application must retain the relevant messages and tool results. Keeping every historical log can raise cost without improving the decisions that matter.
Model specifications
These are OpenRouter model-level specifications, not a Y-API compatibility test. A particular route may accept fewer input formats, parameters or tokens. Verify the features you need with a small request; a successful text response does not validate vision or tool calling.
- Context window
- 1,048,576 tokens
- Input
- Text
- Output
- Text
- Listed on OpenRouter
- Parameters listed by OpenRouter
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Estimate your cost
- Estimated credit consumed
- $3.60
- Estimated cash equivalent
- $0.36
Illustrative token budget, not measured usage or a quote. Includes input and output; excludes separate media charges, cache discounts and retries. Include billed reasoning tokens in your output budget where applicable. Actual billing follows usage returned by the service.
$1 paid adds $10 of credit. Cash equivalent = credit consumed ÷ 10; this is not the model publisher’s list price.
| Model | Estimated credit consumed | Estimated cash equivalent |
|---|---|---|
| GLM 5.2 | $3.60 | $0.36 |
| GLM 5.3 | $3.90 | $0.39 |
| Hy4 preview | $2.50 | $0.25 |
Use the API
These minimal, text-only requests use the exact Y-API model ID. They do not demonstrate image, audio, video, file or tool support. The output limit also needs room for reasoning; an empty answer with finish_reason=length can mean the budget was exhausted.
A task to try
Plan a zero-downtime rename of a database column used by old and new application versions. Include deployment order, compatibility and rollback points.
Set the TOKEN environment variable to a key from your console. Run this on your server or locally; never expose a key in browser code or a public repository.
curl --fail-with-body --silent --show-error --max-time 120 \
'https://api.y-api.bestvirtualgoods.com/v1/chat/completions' \
-H "Authorization: Bearer ${TOKEN:?Set TOKEN first}" \
-H 'Content-Type: application/json' \
--data-binary @- <<'JSON'
{
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Plan a zero-downtime rename of a database column used by old and new application versions. Include deployment order, compatibility and rollback points."
}
],
"max_tokens": 4096
}
JSONHow to evaluate the result
Look for an expand-and-contract migration, compatibility during mixed versions and a rollback plan before destructive cleanup. Test the order against your actual deployment process.
Before you choose
How does GLM 5.2 differ from GLM 5.3?
Z.ai states that 5.3 uses the same base model with changes from post-training. That is a reason to compare behavior on your engineering tasks, not to infer equivalence from the shared base.
Sources & scope
Technical facts come from the cited model page and, where available, its linked publisher card. A card describes that checkpoint; it is not proof of the weights a gateway serves. Prices come only from the Y-API catalog. We do not claim measured latency, uptime or benchmark scores for this endpoint.