GLM 5.3
https://api.foxwire.ai/v1/chat/completions#Pricing Summary
Input Tokens
178,5 ₽ per 1M tokens. Corresponds to all context prompt tokens sent.
Output Tokens
561 ₽ per 1M tokens. Corresponds to content generated by the model.
Cache Read
33,15 ₽ per 1M tokens. Up to 90% savings when hitting the prompt cache.
Cache Write
0 ₽ per 1M tokens. Cost to index input context for caching.
#Voorbeeldaanvraag
Execute completions using standard OpenAI SDK formats by pointing base endpoints here.
curl https://api.foxwire.ai/v1/chat/completions \
-H "Authorization: Bearer $CORRY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [{"role": "user", "content": "Hello"}]
}'#Antwoordvoorbeeld
Een standaard OpenAI-compatibel chat completion-object. Het model-veld wordt genormaliseerd naar de naam die je hebt aangevraagd.
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "glm-5.3",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "Hello! How can I help you today?" },
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 12, "completion_tokens": 9, "total_tokens": 21, "cost": 0.000234, "currency": "USD" }
}Cost field
#Prompt-caching
Plaats bij cache-geschikte modellen de lange statieke inhoud (systeem, kennisbank) eerst en voeg een cache-breekpunt toe. Gecachte delen kunnen slechts 1/10 kosten. Cache-treffers worden weergegeven in het usage-veld van het antwoord.
{
"model": "glm-5.3",
"messages": [
{
"role": "system",
"content": [
{ "type": "text", "text": "( long static context ... )", "cache_control": { "type": "ephemeral" } }
]
},
{ "role": "user", "content": "your question" }
]
}Prompt Caching Tip
#Redeneren
Voeg voor modellen die dit ondersteunen reasoning_effort toe (low / medium / high). Het redeneren wordt teruggegeven in het reasoning_content-veld van het antwoord; redeneertokens worden tegen het uitvoertarief gefactureerd.
{
"model": "glm-5.3",
"max_tokens": 2048,
"reasoning_effort": "high",
"messages": [{ "role": "user", "content": "your question" }]
}