SiliconFlow: THUDM/GLM-4.1V-9B-Thinking

thudm-glm-4-1v-9b-thinking
Released Jun 17, 2025 · 66K context · Free / Free
chat reasoning

API Integration

Integrate THUDM/GLM-4.1V-9B-Thinking into your applications using the following code snippets.

Python (OpenAI)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.siliconflow.cn/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="thudm-glm-4-1v-9b-thinking",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
JavaScript (OpenAI)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.siliconflow.cn/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "thudm-glm-4-1v-9b-thinking",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
cURL
curl "https://api.siliconflow.cn/v1/models/thudm-glm-4-1v-9b-thinking:generateContent?key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"parts": [{"text": "Hello!"}]}]
  }'