{"uid":"cap_SOavRJq88A565qxGWUtge","slug":"glm-5-3-chat-completions-telnyx-inference-43d8f6c4","name":"GLM-5.3 Chat Completions (Telnyx Inference)","description":"Chat completions via Telnyx Inference (zai-org/GLM-5.3), run at low reasoning effort for direct answers. max_tokens must be 4096–4096 (omit it for the 4096-token default). OpenAI-compatible. Up to $0.053375 USDC per call, quoted to your request (input + max_tokens at list rates, no markup), or pay per-token via the upto scheme.","url":"https://x402.telnyx.com/v1/chat/completions/_t/glm-5.3?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.3","description":"Model identifier; fixed to zai-org/GLM-5.3 on this route."},"tools":{"type":"array","items":{"type":"object"},"maxItems":16},"messages":{"type":"array","items":{"type":"object","required":["role"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":["string","null"],"maxLength":32000,"description":"Required, except null/omitted on assistant messages that carry tool_calls."},"reasoning":{"type":"string","maxLength":32000,"description":"Assistant messages only: the reasoning returned with that turn, sent back on multi-turn and tool-call loops. Counts toward the message character limits."},"reasoning_content":{"type":"string","maxLength":32000,"description":"Assistant messages only: alternative name for reasoning (as returned by GLM and gpt-oss)."}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":4096,"minimum":4096},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.016413","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.053375/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053375","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053375","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8Uk6NGhhZazjx0NmkcYXl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.053375","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs chat completions using the zai-org/GLM-5.3 model at low reasoning effort via Telnyx Inference, with an OpenAI-compatible API and fixed 4096-token output budget.","exampleAgentPrompt":"Ask GLM-5.3 on Telnyx Inference to explain the difference between supervised and unsupervised learning in plain English — just send it as a user message and get the answer back directly.","exampleUseCases":[{"title":"Agentic tool-call loop with GLM","prompt":"Run a GLM-5.3 chat completion on Telnyx with my list of tool definitions and the user's question 'what's the weather in Tokyo?' — use a temperature of 0.2 and pass the conversation history I have so far."},{"title":"One-shot Q&A for customer support bot","prompt":"Send this customer message to GLM-5.3 on Telnyx Inference: 'How do I reset my account password?' and return a helpful, concise reply at temperature 0.7."},{"title":"Structured data extraction from text","prompt":"Use GLM-5.3 via Telnyx to extract the company name, revenue figure, and fiscal year from this paragraph of financial text — give me the result as JSON by providing a system prompt that instructs structured output."}],"resultDescription":"Returns an OpenAI-compatible chat completion response object containing one assistant message (n is fixed to 1), including the generated text content and optionally tool_calls if tools were provided. The model is zai-org/GLM-5.3, reasoning effort is low for direct answers, and the output is capped at 4096 tokens.","failureModes":["max_tokens value other than 4096 is rejected (must be exactly 4096 or omitted)","Exceeding 32 messages or 32,000 characters per message returns a validation error","More than 16 tools provided causes rejection","Insufficient USDC balance or failed x402 payment results in 402 Payment Required","Model identifier other than zai-org/GLM-5.3 is rejected (const field)","n values other than 1 are rejected"],"whenToPreferThis":"Choose this endpoint when you need a fixed-cost, pay-per-call GLM-5.3 completion with OpenAI API compatibility and a predictable 4096-token budget. It is ideal for agentic pipelines that prefer flat-rate billing over per-token metering, and for tasks where low reasoning effort is sufficient (direct Q&A, extraction, tool-call loops). Prefer GLM-5.1 or the metered GLM-5.2 endpoint if you need higher reasoning effort or variable token budgets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T06:33:53.575Z","isFirstParty":false,"canonicalSlug":"glm-5-3-chat-completions-telnyx-inference-43d8f6c4"}