All models

GLM-4.6V-Flash

by Z.ai

Chat Vision

Z.ai's GLM-4.6V-Flash (glm4v family) — vision; 131K context.

Publisher
Z.ai
Context window
128K tokens
Licence
MIT
Model card on Hugging Face

Run GLM-4.6V-Flash

Install it on a Pendra worker, then call it through the OpenAI-compatible API with a pdr_sk_ key.

Chat

from pendra import Pendra

client = Pendra(api_key="pdr_sk_...")

response = client.chat.completions.create(
    model="glm-4.6v-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)

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

Vision

from pendra import Pendra

client = Pendra(api_key="pdr_sk_...")

response = client.chat.completions.create(
    model="glm-4.6v-flash",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "What's in this image?"},
                {"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}},
            ],
        }
    ],
)

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

Run GLM-4.6V-Flash on your own UK infrastructure

Deploy a worker, install GLM-4.6V-Flash, and start serving it through one sovereign API endpoint.