{"uid":"cap_53at9su-HYBdShHXzvVxN","slug":"x402donghang-starter-chat-glm-5-2-via-x402-0977c842","name":"x402donghang Starter Chat — GLM-5.2 via x402","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/starter","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_l3v-zjGS2MzDCzHZ8dfUM","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":"Send a chat message to GLM-5.2 (OpenAI-compatible) and receive a completion, billed per-call in USDC via x402 with no signup required.","exampleAgentPrompt":"Send the message 'Explain quantum entanglement in two sentences' to GLM-5.2, streaming off, max 200 tokens, and pay per call with USDC — no account needed.","exampleUseCases":[{"title":"Crypto-paid AI chatbot reply","prompt":"Ask GLM-5.2 to write a short product description for a new espresso machine, keep it under 150 tokens, and pay for the call with USDC — I don't want to sign up for anything."},{"title":"Agent pipeline text generation","prompt":"I'm building an agent workflow and need to call a cheap OpenAI-compatible LLM with no signup — use GLM-5.2 on the x402 starter endpoint to generate a one-paragraph summary of this input text: 'Decentralized finance allows users to access financial services without intermediaries.'"},{"title":"Quick one-off LLM test with micropayment","prompt":"Test the GLM-5.2 model by sending it the prompt 'What is the capital of France?' with max 50 tokens and no streaming — just pay the per-call fee in USDC and show me the response."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object containing the model name, a choices array with the assistant's message content and finish_reason (e.g. 'stop'), and a completion ID.","failureModes":["Payment not included or insufficient USDC — returns HTTP 402 requiring payment","Invalid model name (must be 'glm-5.2') — returns model not found error","Malformed messages array or missing required role/content fields — returns 400 validation error","Token limit exceeded — response may be truncated or return an error","Service unavailable due to underlying model provider downtime"],"whenToPreferThis":"Choose this endpoint when you need a cheap, no-signup OpenAI-compatible chat completion API billed in USDC micropayments via x402. It is ideal for agent pipelines that want pay-per-call economics without maintaining API keys or subscriptions, and specifically when GLM-5.2 (Zhipu AI) inference quality is acceptable for the task.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T20:29:10.914Z","isFirstParty":false}