GET

/v1/models/opencode/glm-5.1

provider opencodestatus activefirst seen Apr 7, 2026last seen 5d agodeprecated Nov 19, 2026
rawIdglm-5.1
displayNameGLM-5.1
idopencode-glm-5-1
activitychat
schemaEndpointIdinference/openai/v1/chat/completions
releasedAt1775520000 — Apr 7, 2026
firstSeenAt1775520000 — Apr 7, 2026
lastSeenAt1795073669 — 5d ago
pricing
contextWindow204800
maxOutput131072
modalities{"input":["text"],"output":["text"]}
capabilities{"tools":true,"reasoning":true,"vision":false}
knowledgeCutoff"2025-04"
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.1","cost":{"cache_read":0.26,"input":1.4,"output":4.4},"description":"Flagship GLM model for hybrid reasoning, coding, and agentic engineering","family":"glm","id":"glm-5.1","interleaved":{"field":"reasoning_content"},"knowledge":"2025-04","last_updated":"2026-04-07","limit":{"context":204800,"output":131072},"modalities":{"input":["text"],"output":["text"]},"name":"GLM-5.1","open_weights":true,"provider":{"api":"https://opencode.ai/inference/openai/v1"},"reasoning":true,"reasoning_options":[{"type":"toggle"}],"release_date":"2026-04-07","temperature":true,"tool_call":true}
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

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.1","usage":{"input_tokens":1200,"output_tokens":400}}'