GET
/v1/models/opencode/glm-5.1
Accept:
| rawId | glm-5.1 |
| displayName | GLM-5.1 |
| id | opencode-glm-5-1 |
| activity | chat |
| schemaEndpointId | inference/openai/v1/chat/completions |
| releasedAt | 1775520000 — Apr 7, 2026 |
| firstSeenAt | 1775520000 — Apr 7, 2026 |
| lastSeenAt | 1795073669 — 5d ago |
| pricing | $1.4 / 1M input · $4.4 / 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.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} |
| 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
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}}'