Coding GLM 4.6
ChatGLM logo

Coding GLM 4.6

coding-glm-4.6
ChatGLM

Pricing

  • Input Tokens: $0.06 /M tokens
  • Output Tokens: $0.22 /M tokens
  • Cache Read: $0.011 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Context length

  • 200K tokens

Max output

  • 131K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Sophnet task-r23sxc-coding-e2e-sub
30% off
Off-peak23:59–00:00 UTC
Pricing$0.06$0.042$0.22$0.154
Cache Read$0.011/M tokens$0.0077/M tokens
Peak00:00–23:59 UTC
Pricing$0.12$0.084$0.44$0.308
Cache Read$0.022/M tokens$0.0154/M tokens
Context128K
Max output65K
Latency1.0S
Throughput50.0TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for coding-glm-4.6

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://shkq.org/v1",
)

response = client.chat.completions.create(
    model="coding-glm-4.6",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is the context length of GLM 4.6 (coding)?

GLM 4.6 (coding) has a 200,000 token context window. It supports up to 131,072 output tokens.