{"uid":"cap_N8NptaTBVKbFVrkOFa0A7","slug":"glm-5-1-metered-chat-large-context-9ad82214","name":"GLM-5.1 Metered Chat (Large Context)","description":"Reasoning-tier chat completions via Telnyx Inference (GLM-5.1-FP8) — 12K-char-per-message input, 2048-token output. OpenAI-compatible. $0.023386 USDC per call. (upto metered — large context)","url":"https://x402.telnyx.com/v1/chat/completions/_t/glm/upto?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Fixed to one completion per paid call."},"model":{"type":"string","const":"zai-org/GLM-5.1-FP8","description":"Model identifier; fixed to zai-org/GLM-5.1-FP8 on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string","maxLength":200000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":8192,"minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.104493","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.104493/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.104493","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.104493","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ufIkGKTVYSeSWXbCGSPKy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.104493","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-call OpenAI-compatible chat completions using GLM-5.1-FP8 reasoning model with metered (large-context) pricing via Telnyx Inference","exampleAgentPrompt":"Ask the GLM-5.1 reasoning model: given this 10,000-character legal document summary, identify all contractual obligations, potential risks, and ambiguous clauses — use up to 2048 tokens in your response.","exampleUseCases":[{"title":"Complex multi-step code reasoning","prompt":"I have a tricky algorithm bug — here's my 8,000-character Python codebase context. Use the GLM-5.1 reasoning model to trace through the logic, find the bug, and suggest a fix with an explanation."},{"title":"Long-document summarization with analysis","prompt":"Summarize and critically analyze this 11,000-character academic paper excerpt using GLM-5.1, highlighting the key claims, methodology weaknesses, and practical implications — keep the response under 2000 tokens."},{"title":"Agentic tool-use reasoning loop","prompt":"I'm running an agent that needs to decide which of these 5 tools to call next based on the current conversation history — send the last 15 messages and the tool definitions to GLM-5.1 and return its tool_call decision."}],"resultDescription":"An OpenAI-compatible chat completion object containing one assistant message (up to 2048 tokens), optionally including tool_calls if tools were provided. The response includes the generated text, finish reason, token usage counts, and model identifier.","failureModes":["Payment failure: insufficient USDC balance or x402 payment rejected — returns 402 Payment Required","Input too long: messages array exceeds 32 items or content exceeds 200,000 characters — returns 400 validation error","Invalid model: any model string other than zai-org/GLM-5.1-FP8 is rejected","max_tokens out of range: values above 8192 or below 1 return a 400 error","Temperature out of range: values outside 0-2 return a validation error","More than 16 tools provided: returns a 400 error","More than 1 completion requested (n>1): rejected as n is fixed to 1"],"whenToPreferThis":"Choose this endpoint when you need a reasoning-tier model (GLM-5.1-FP8) with large-context input support and want metered, pay-per-call pricing without a subscription — ideal for bursty workloads, agent orchestration steps, or long prompts that exceed smaller-context route limits. Prefer over the flat-rate GLM-5.1 sibling when your input is large and you want metered billing. Prefer over other Telnyx models (Gemma, Llama, DeepSeek) when you specifically need GLM-5.1's reasoning capability rather than a smaller or faster model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:35.177Z","isFirstParty":false,"canonicalSlug":"glm-5-1-metered-chat-large-context-9ad82214"}