{"uid":"cap_wpM9G9kgiNEpkKdBphQ28","slug":"telnyx-inference-glm-5-2-chat-completions-large-context-upto-tier-b4a54b5a","name":"Telnyx Inference – GLM-5.2 Chat Completions (Large Context / Upto Tier)","description":"Chat completions via Telnyx Inference (zai-org/GLM-5.2). OpenAI-compatible. $0.037526 USDC per call. (upto metered — large context)","url":"https://x402.telnyx.com/v1/chat/completions/_t/glm-5.2/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.2","description":"Model identifier; fixed to zai-org/GLM-5.2 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.102602","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.102602/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.102602","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.102602","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cfra7IAgUhmIujwK3_-AW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.102602","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions using zai-org/GLM-5.2 at the large-context 'upto' pricing tier, supporting up to 200K character messages and tool use, paid per call via x402.","exampleAgentPrompt":"Send this 50-page contract text to GLM-5.2 and ask it to summarize the key obligations and flag any unusual clauses — use the large-context tier and allow up to 4096 output tokens.","exampleUseCases":[{"title":"Long-document contract analysis","prompt":"I have a 40,000-word legal agreement — feed the whole thing to GLM-5.2 and tell me what the termination clauses say and whether there are any indemnification risks."},{"title":"Multi-turn tool-calling agent step","prompt":"Run the next reasoning step for my agent using GLM-5.2: here are the last 20 messages and these 5 tool definitions — let the model decide which tool to call next."},{"title":"Large codebase review","prompt":"I'm going to paste 150KB of Python source code — use GLM-5.2 on the upto tier to review it for security vulnerabilities and suggest fixes, with temperature 0.2 and up to 8192 tokens of output."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the generated assistant message (or tool call), finish reason, token usage statistics, and model identifier.","failureModes":["Payment failure or insufficient USDC balance (402 error)","Messages array exceeds 32 items or content exceeds 200K characters (422/400 validation error)","max_tokens exceeds 8192 (validation error)","Model temporarily unavailable or inference timeout (503/504)","Malformed message roles or missing required fields (400 error)"],"whenToPreferThis":"Choose this endpoint when you need GLM-5.2 specifically at the large-context pricing tier — ideal for prompts or conversation histories with very long content (up to 200K characters per message) that exceed cheaper tier limits, or when you need per-call x402 micropayment billing without API key subscriptions. Prefer over the standard GLM-5.2 tier when document or context size is the primary constraint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:25.217Z","isFirstParty":false,"canonicalSlug":"telnyx-inference-glm-5-2-chat-completions-large-context-upto-tier-b4a54b5a"}