Coding GLM 4.6
Z.AI logo

Coding GLM 4.6

coding-glm-4.6
Z.AI

Pricing

  • Input Tokens: $0.060 /M tokens
  • Output Tokens: $0.220 /M tokens
  • Cache Read: $0.011 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tools
  • Tool calling
  • Structured outputs

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/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

How much does Coding GLM 4.6 cost?

On AIHubMix, Coding GLM 4.6 costs $0.06 per million input tokens and $0.22 per million output tokens. Cached input reads are billed at $0.011 per million tokens.