GLM 5.1

glm/glm-5.1Available

GLM-5.1 by Z.ai — flagship chat model with strong Chinese + English coverage, function calling, and fine-grained token streaming. OpenAI-compatible: pass model=glm/glm-5.1 to /v1/chat/completions.

Retail priceinput $2.8e-06 · output $8.8e-06 · cached input $5.2e-07
Providerglm
Capabilitychat
InterfacePOST /v1/run

Request example

Every paid call needs a unique Idempotency-Key. The same key and payload replay the original result without a second charge.

cURL
curl https://router.tycoon.cool/v1/run \
+  -H "Authorization: Bearer $TYCOONROUTER_API_KEY" \
+  -H "Content-Type: application/json" \
+  -H "Idempotency-Key: $(uuidgen)" \
+  -d '{"model":"glm/glm-5.1","inputs":{"messages":[{"role":"user","content":"Hello"}]}}'

Response contract

Synchronous routes return the provider result with TycoonRouter request metadata. Async routes return a request ID plus status and cancel URLs.

HeaderPurpose
x-request-idImmutable Router request identity
x-idempotent-replayTrue when the response is a replay
x-tycoonrouter-charge-microsSettled retail charge when available

Production safeguards

Unknown prices, unbounded requests and uncertain provider outcomes fail closed before a second paid dispatch. Usage and wallet events remain queryable from the account page.