{"uid":"cap_P153iGLTkXjYVEfABE1wV","slug":"telnyx-x402-gateway-glm-5-3-flash-chat-completions-cd8866dc","name":"Telnyx x402 Gateway – GLM-5.3-Flash Chat Completions","description":"Pay USDC per request for Telnyx Inference and Audio (text-to-speech, speech-to-text) through x402.","url":"https://x402.telnyx.com/v1/chat/completions/_t/glm-5.3-flash?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-Flash","description":"Model identifier; fixed to zai-org/GLM-5.3-Flash 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":32000}}},"maxItems":32,"description":"OpenAI-style chat messages."},"max_tokens":{"type":"integer","maximum":2048,"minimum":512},"temperature":{"type":"number","maximum":2,"minimum":0}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-xxx","usage":{"total_tokens":16,"prompt_tokens":12,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005783","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.005783/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005783","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005783","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dn1llO9l19ucLwVfvjAXU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005783","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate chat completions using the zai-org/GLM-5.3-Flash model, paid per-request in USDC via the x402 protocol on Telnyx's inference gateway.","exampleAgentPrompt":"Using the Telnyx GLM-5.3-Flash inference gateway, send these messages — system: 'You are a helpful assistant', user: 'Explain quantum entanglement in two sentences' — with temperature 0.7 and max 512 tokens, and pay the per-request USDC fee automatically.","exampleUseCases":[{"title":"Autonomous agent task reasoning","prompt":"I want you to think through this multi-step customer support problem using the GLM-5.3-Flash model on Telnyx: system prompt 'You are a customer support specialist', user message 'My order #4821 hasn't arrived after 3 weeks — what are my options?', temperature 0.5, max 1024 tokens."},{"title":"Tool-calling workflow orchestration","prompt":"Call the Telnyx GLM-5.3-Flash endpoint with my tool definitions for calendar_lookup and email_send, system 'You are a scheduling assistant', user 'Schedule a meeting with John on Friday at 3pm and send him a confirmation', and use temperature 0.3 with 512 max tokens."},{"title":"Content drafting with crypto micropayment","prompt":"Use the Telnyx x402 GLM-5.3-Flash model to draft a short product description — system: 'You are a copywriter', user: 'Write a 3-sentence description for a noise-cancelling bluetooth headset aimed at remote workers' — temperature 0.9, max tokens 512, and pay with USDC per call."}],"resultDescription":"Returns an OpenAI-compatible JSON object with a choices array containing the assistant's generated message, finish reason, token usage breakdown (prompt, completion, total tokens), and a unique completion ID.","failureModes":["Payment failure if USDC balance is insufficient or x402 payment header is missing/malformed","Model or route unavailable (5xx errors from Telnyx inference backend)","Message content exceeds 32,000 character limit per message","Too many messages in the conversation (exceeds 32-message limit)","max_tokens out of range (must be 512–2048)","Temperature out of range (must be 0–2)","Too many tool definitions (exceeds 16-tool limit)"],"whenToPreferThis":"Choose this endpoint when you need a fast, OpenAI-compatible chat completion using the GLM-5.3-Flash model and want to pay per-request in USDC without a subscription or API key setup. Ideal for autonomous agents that need on-demand LLM inference with crypto-native micropayments via x402, particularly when avoiding centralized billing or when running sporadic, pay-as-you-go inference workloads.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:36:50.260Z","isFirstParty":false,"canonicalSlug":"telnyx-x402-gateway-glm-5-3-flash-chat-completions-cd8866dc"}