GLM-4.7
GLM-4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Explore GLM-4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses through the unified API. Supported interfaces and current availability are shown below.
- OpenAI-style Chat Completions
- Anthropic-style Messages
- OpenAI-style Responses
Model details
- Context window
- 200K tokens
- Max output
- 128K tokens
- Input
- Text
- Output
- Text
- Capabilities
- Reasoning, Tool calling, Streaming, JSON output
- Interfaces
- OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.
| Metric | Price |
|---|---|
| / 1M input tokens | $0.6 |
| / 1M output tokens | $2.2 |
| / 1M cached input tokens | $0.11 |
| / web search | $0.01 |
Why teams pick it
- GLM-4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Call GLM-4.7
GLM-4.7 answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.
More from Z.ai
GLM-5.3A coding-first flagship with a million-token context.$0.77 in · $2.42 outGLM-5.2Long-horizon coding and agentic engineering, at a lower price.$1.4 / 1M input tokens · $4.4 / 1M output tokens · See all rates on the model pageCogView-4CogView-4 for OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$0.01 / request