GLM-4 32B (Novita) API
Novita AI · serves glm-4-32b the only endpoint we price for it
Call it
Served via OpenRouter, pinned to Novita — the provider these prices are resolved from. Set OPENROUTER_API_KEY. Provider page.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "thudm/glm-4-32b-0414",
"messages": [{"role": "user", "content": "Hello"}],
"provider": {"only": ["Novita"], "allow_fallbacks": false}
}'from openai import OpenAI # pip install openai
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="...", # OPENROUTER_API_KEY
)
resp = client.chat.completions.create(
model="thudm/glm-4-32b-0414",
messages=[{"role": "user", "content": "Hello"}],
extra_body={"provider": {"only": ["Novita"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)Use this data
Raw JSON for this page: glm-4-32b.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.