GET

/v1/models/opencode/glm-5.2

provider opencodestatus activefirst seen Jun 13, 2026last seen 3m ago
rawIdglm-5.2
displayNameGLM-5.2
idopencode-glm-5-2
activitychat
schemaEndpointIdinference/openai/v1/chat/completions
releasedAt1781308800 — Jun 13, 2026
firstSeenAt1781308800 — Jun 13, 2026
lastSeenAt1794560597 — 3m ago
pricing
contextWindow1000000
maxOutput131072
modalities{"input":["text"],"output":["text"]}
capabilities{"tools":true,"reasoning":true,"structured_outputs":true,"vision":false}
openWeightstrue
requestMap{"thinking":null,"maxTokensField":null,"developerRole":null,"replayReasoningContent":true,"store":null,"strictTools":null,"sessionAffinity":null,"cacheControl":null,"toolStream":null,"reasoningEffort":null}
providerMetadata{"attachment":false,"canonical_model_id":"zhipuai/glm-5.2","cost":{"cache_read":0.26,"input":1.4,"output":4.4},"description":"Open flagship GLM for long-horizon coding agents and million-token context work","family":"glm","id":"glm-5.2","interleaved":{"field":"reasoning_content"},"last_updated":"2026-06-13","limit":{"context":1000000,"output":131072},"modalities":{"input":["text"],"output":["text"]},"name":"GLM-5.2","open_weights":true,"provider":{"api":"https://opencode.ai/inference/openai/v1"},"reasoning":true,"reasoning_options":[{"type":"effort","values":["high","max"]}],"release_date":"2026-06-13","structured_output":true,"temperature":true,"tool_call":true}
knowledgeCutoff · weightsUrlnot published by this provider’s list endpoint

Endpoints & schemas

GET /v1/schemas/opencode →

endpoints matching this model — the provider has more, see /v1/schemas/opencode

Sources

fieldrecorded source
contextWindowhttps://models.dev/api.json

listing

opencode.models.glm-5.2.limit.context

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
maxOutputhttps://models.dev/api.json

listing

opencode.models.glm-5.2.limit.output

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
modalitieshttps://models.dev/api.json

listing

opencode.models.glm-5.2.modalities

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
pricingSource linked above.

docs-derived

Source trace
7c679ba1d370b4f455e84534094cfa25c1a6ce2b3c48479fdfbda654aaddda89
reasoninghttps://models.dev/api.json

listing

opencode.models.glm-5.2.reasoning_options

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
openWeightshttps://models.dev/api.json

listing

opencode.models.glm-5.2.open_weights

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
schemaEndpointIdhttps://models.dev/api.json

listing

opencode.models.glm-5.2.provider

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
capabilities.toolshttps://models.dev/api.json

listing

opencode.models.glm-5.2.tool_call

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
capabilities.reasoninghttps://models.dev/api.json

listing

opencode.models.glm-5.2.reasoning

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
capabilities.structured_outputshttps://models.dev/api.json

listing

opencode.models.glm-5.2.structured_output

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
capabilities.visionhttps://models.dev/api.json

listing

opencode.models.glm-5.2.modalities.input

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
requestMaphttps://models.dev/api.json

listing

opencode.models.glm-5.2.interleaved.field

Source trace
cc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff
activitySource unknown — no source URL recorded.

Use it

shell
$ curl https://modelschemas.com/v1/schemas/opencode/chat/inference/openai/v1/chat/completions # request schema
$ curl -X POST https://modelschemas.com/v1/validate -d '{"provider":"opencode","endpointId":"inference/openai/v1/chat/completions","payload":{…}}'
$ curl -X POST https://modelschemas.com/v1/estimate -d '{"provider":"opencode","model":"glm-5.2","usage":{"input_tokens":1200,"output_tokens":400}}'