{"uid":"cap_VlEmVr3d-eYwxDhISQcqQ","slug":"glm-5-2-llm-via-x402-no-api-key-usdc-payment-ca90cd6c","name":"GLM-5.2 LLM via x402 (No API Key, USDC Payment)","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-llm.jvalamis.workers.dev/v1/llm/glm-5.2","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object"}},"max_tokens":{"type":"integer"}}},"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":"settled","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_EV8XCqaFUtpmtEcNL6MYt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs inference on the GLM-5.2 language model hosted on Cloudflare Workers AI, billed per-call in USDC via x402 with no API key required.","exampleAgentPrompt":"Without using any API key, ask the GLM-5.2 model this question for me — paying in USDC on Base — and limit the reply to 200 tokens: 'Explain the difference between proof-of-work and proof-of-stake in simple terms.'","exampleUseCases":[{"title":"Credential-free chatbot powered by crypto","prompt":"Set up a customer support chatbot that answers questions about our product without needing API keys — just pay per message in USDC on Solana. Start by asking GLM-5.2: 'What are the main features of a decentralized exchange?' and keep responses under 150 tokens."},{"title":"Multilingual agent supporting Chinese queries","prompt":"I need to respond to customer inquiries in both English and Chinese using a bilingual model. Call GLM-5.2 via x402 on Polygon with USDC to translate and answer this: 'How do I stake tokens safely?' — limit it to 300 tokens please."},{"title":"Pay-per-call LLM for wallet-enabled agents","prompt":"Our Web3 agent needs to generate text summaries of blockchain transactions without managing credentials. Use GLM-5.2 on Arbitrum, paying with USDC, to summarize this for our user: 'Describe what a liquidity pool does in DeFi' — keep it concise at 200 tokens max."}],"resultDescription":"A JSON object containing the model identifier (@cf/zai-org/glm-5.2) and a 'response' string with the assistant's generated text reply, up to the requested max_tokens.","failureModes":["Payment not received or x402 handshake fails — endpoint returns HTTP 402 requiring USDC payment","Unsupported blockchain network provided — payment rejected","max_tokens exceeds 4096 — request rejected with validation error","Messages array missing required role or content fields — 400 bad request","Model overloaded or Cloudflare Workers timeout — 503 or 524 error","Insufficient USDC balance in paying wallet — transaction fails before inference runs"],"whenToPreferThis":"Choose this endpoint when you need GLM-5.2 specifically (a capable Chinese-developed bilingual model), want to avoid API key registration entirely, and are comfortable paying $0.12 USDC per call via the x402 protocol on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents that manage crypto wallets and need stateless, credential-free LLM access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:39:37.242Z","isFirstParty":false}