{"uid":"cap_k584TdeQ54hY1x7k5Y7Go","slug":"glm-5-2-chat-completions-via-x402-x402donghang-36c83afc","name":"GLM-5.2 Chat Completions via x402 (x402donghang)","description":"Fresh crypto narrative research with market context and verifiable source URLs. Free BTC sample; custom radar $0.02/call via x402 USDC.","url":"https://x402donghang.duckdns.org/x402/v1/models/glm-5.2/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Use \"glm-5.2\""},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"number"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-x402","model":"glm-5.2","object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uqc5k2AOAaYk7Vj6IJmQx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions using the GLM-5.2 language model, billed per-call at $0.008 USDC via x402 micropayment on Base or Solana.","exampleAgentPrompt":"Ask the GLM-5.2 model: 'Explain the difference between proof-of-work and proof-of-stake in simple terms' — use streaming if you want a live response.","exampleUseCases":[{"title":"Crypto concept explanation for users","prompt":"Use GLM-5.2 to explain what a liquidity pool is in DeFi, in plain language suitable for a beginner — stream the response back to me."},{"title":"Chinese-market AI assistant integration","prompt":"Send this message to GLM-5.2 and get back a reply: 'What are the top risks of investing in altcoins right now?' — limit the response to 300 tokens."},{"title":"Pay-per-call LLM for agent pipeline","prompt":"I need a one-off AI chat completion without setting up an account — have GLM-5.2 summarize this paragraph for me and pay per call with USDC."}],"resultDescription":"Returns a JSON chat completion object in OpenAI format, including an id, model name ('glm-5.2'), choices array with the assistant's message content, and a finish_reason field indicating how the response ended (e.g. 'stop').","failureModes":["Payment not received or invalid x402 header — returns 402 Payment Required","Invalid model name (must be 'glm-5.2') — may return 400 or model not found error","Malformed messages array (missing 'role' or 'content') — returns 400 validation error","max_tokens exceeded model context limit — truncated response or error","Service downtime on duckdns host — returns 5xx or connection timeout"],"whenToPreferThis":"Choose this endpoint when you need a GLM-5.2 chat completion on a pay-per-call basis with no signup, using x402 USDC micropayments on Base or Solana. It is ideal for agents that need occasional LLM calls without committing to a subscription, or when integrating a Chinese-market LLM into an OpenAI-compatible pipeline. Prefer Grok or other sibling endpoints on this host if you specifically need real-time crypto sentiment or web search capabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T05:27:00.491Z","isFirstParty":false,"canonicalSlug":"glm-5-2-chat-completions-via-x402-x402donghang-36c83afc"}