{"uid":"cap_BWXaZAw_ktTSGnU35__Sq","slug":"gedx402-glm-5-2-llm-via-x402-dee0fd83","name":"GEDX402 GLM-5.2 LLM via x402","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://llm.gedx402.com/v1/llm/glm-5.2","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string","description":"Speaker role for this turn."},"content":{"type":"string","description":"Message text for this turn."}}},"description":"Conversation turns in order (system, user, assistant)."},"max_tokens":{"type":"integer","maximum":4096,"minimum":1,"description":"Maximum tokens to generate in the assistant reply."}}},"responseSchema":{"type":"json","example":{"model":"@cf/zai-org/glm-5.2","response":"Hello!"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.12","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.12/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wElQC6VyU4UeW9F_7nUom","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Run multi-turn chat completions against the GLM-5.2 language model, paying per-call with USDC on-chain via x402 — no API keys required.","exampleAgentPrompt":"Using the GLM-5.2 model on GEDX402 (pay-per-call with USDC, no API key), send this conversation and get a reply — system: 'You are a helpful assistant.', user: 'Explain quantum entanglement in simple terms.', and limit the response to 512 tokens.","exampleUseCases":[{"title":"Real-time customer support chatbot","prompt":"I need you to help respond to customer messages right now using GLM-5.2 without needing me to set up API keys — just pay per message with USDC on Base. Here's what a customer just asked: 'Why is my order still pending after 3 days?' Give me a helpful response."},{"title":"Multilingual content moderation agent","prompt":"Can you use the GLM-5.2 model to check if this user comment is appropriate? Pay with USDC per check on Solana, no signup required. The comment is: 'I love this product, shipping was fast!' Just tell me if it's safe to publish."},{"title":"On-demand document summarization system","prompt":"I want to summarize this research paper using GLM-5.2 via pay-as-you-go USDC payments on Polygon — no account setup needed. Here's the abstract: 'This study explores machine learning applications in healthcare diagnostics...' Can you give me a concise summary in under 200 tokens?"}],"resultDescription":"A JSON object containing the model identifier (@cf/zai-org/glm-5.2) and the assistant's generated text response to the provided conversation.","failureModes":["Insufficient USDC balance causes payment failure and 402 response","Invalid message role (not system/user/assistant) causes schema validation error","max_tokens exceeding 4096 is rejected","Empty or malformed messages array returns an error","Network timeout if Workers AI backend is slow","Unsupported payment chain causes transaction failure"],"whenToPreferThis":"Choose this endpoint when you need per-call LLM inference with no API key or subscription — ideal for agents that want to pay for exactly what they use in USDC on Base, Polygon, Arbitrum, World, or Solana. Prefer it specifically when you want the GLM-5.2 model (a capable bilingual Chinese/English model) via Cloudflare Workers AI infrastructure without account management overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:44:11.840Z","isFirstParty":false}