GET
/v1/models/opencode/glm-5
Accept:
| rawId | glm-5 |
| displayName | GLM-5 |
| id | opencode-glm-5 |
| activity | chat |
| schemaEndpointId | inference/openai/v1/chat/completions |
| releasedAt | 1770854400 — Feb 12, 2026 |
| firstSeenAt | 1770768000 — Feb 11, 2026 |
| lastSeenAt | 1794559749 — 3m ago |
| pricing | $1 / 1M input · $3.2 / 1M output → open calculator input_tokens (usage) · output_tokens (usage) · cache_read_tokens (usage) |
| contextWindow | 204800 |
| maxOutput | 131072 |
| modalities | {"input":["text"],"output":["text"]} |
| capabilities | {"tools":true,"reasoning":true,"vision":false} |
| knowledgeCutoff | "2025-04" |
| openWeights | true |
| 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","cost":{"cache_read":0.2,"input":1,"output":3.2},"description":"Flagship GLM model for hybrid reasoning, coding, and agentic engineering","family":"glm","id":"glm-5","interleaved":{"field":"reasoning_content"},"knowledge":"2025-04","last_updated":"2026-02-12","limit":{"context":204800,"output":131072},"modalities":{"input":["text"],"output":["text"]},"name":"GLM-5","open_weights":true,"provider":{"api":"https://opencode.ai/inference/openai/v1"},"reasoning":true,"reasoning_options":[{"type":"toggle"}],"release_date":"2026-02-12","temperature":true,"tool_call":true} |
| weightsUrl | not published by this provider’s list endpoint |
Endpoints & schemas
GET /v1/schemas/opencode →| endpoint | activity |
|---|---|
| inference/openai/v1/chat/completions | chat |
endpoints matching this model — the provider has more, see /v1/schemas/opencode
Sources
| field | recorded source |
|---|---|
| contextWindow | https://models.dev/api.json listing opencode.models.glm-5.limit.context Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| maxOutput | https://models.dev/api.json listing opencode.models.glm-5.limit.output Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| modalities | https://models.dev/api.json listing opencode.models.glm-5.modalities Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| pricing | Source linked above. docs-derived Source trace7c679ba1d370b4f455e84534094cfa25c1a6ce2b3c48479fdfbda654aaddda89 |
| reasoning | https://models.dev/api.json listing opencode.models.glm-5.reasoning_options Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| knowledgeCutoff | https://models.dev/api.json listing opencode.models.glm-5.knowledge Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| openWeights | https://models.dev/api.json listing opencode.models.glm-5.open_weights Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| schemaEndpointId | https://models.dev/api.json listing opencode.models.glm-5.provider Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.tools | https://models.dev/api.json listing opencode.models.glm-5.tool_call Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.reasoning | https://models.dev/api.json listing opencode.models.glm-5.reasoning Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| capabilities.vision | https://models.dev/api.json listing opencode.models.glm-5.modalities.input Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| requestMap | https://models.dev/api.json listing opencode.models.glm-5.interleaved.field Source tracecc6d13d3f27b31b7ddfa28df1fcc4e98756f31f7429cd9a4e90a1158e0bbedff |
| activity | Source 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","usage":{"input_tokens":1200,"output_tokens":400}}'