{"uid":"cap_XVjua_8Ayv1fN6HdK06pI","slug":"x402-gateway-production-up-railway-app-ed901784","name":"Zhipu GLM (via x402 Gateway)","description":"Zhipu AI's flagship model — strong multilingual and reasoning performance","url":"https://x402-gateway-production.up.railway.app/api/llm/glm","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"model":"glm-4","messages":[{"role":"user","content":"Translate the following English text to French: 'Hello world. Artificial intelligence is transforming how we work.'"}],"max_tokens":500,"temperature":0.7},"response":{"model":"z-ai/glm-5-20260211","usage":{"cost":0.00098,"is_byok":false,"cost_details":{"upstream_inference_cost":0.00098,"upstream_inference_prompt_cost":0.00002375,"upstream_inference_completions_cost":0.00095625},"total_tokens":400,"prompt_tokens":25,"completion_tokens":375,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":354}},"content":"Bonjour le monde. L'intelligence artificielle transforme la façon dont nous travaillons."}},"exampleRequest":{"model":"glm-4","messages":[{"role":"user","content":"Translate the following English text to French: 'Hello world. Artificial intelligence is transforming how we work.'"}],"max_tokens":500,"temperature":0.7},"tags":["x402"],"displayCostAmount":"0.030000","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.030000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1CpkWRugwTuYiLJtjQP0E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calls Zhipu AI's flagship GLM model for multilingual text generation and reasoning tasks via a pay-per-call x402 gateway","exampleAgentPrompt":"Can you use Zhipu's GLM model to translate and summarize this Chinese article into English, and then explain the key arguments it makes?","exampleUseCases":null,"resultDescription":"Returns generated text from Zhipu AI's GLM model — the response is a natural language completion, answer, translation, summary, or other text output depending on the prompt provided.","failureModes":["Payment not attached or invalid x402 payment header — returns 402 Payment Required","Malformed request body or missing prompt — returns 400 Bad Request","Model temporarily unavailable or upstream Zhipu API error — returns 502 or 503","Rate limit exceeded — returns 429 Too Many Requests","Request timeout if prompt is very long or complex"],"whenToPreferThis":"Prefer this endpoint when you need strong multilingual capability — especially for Chinese, Japanese, Korean, or other non-English languages — or when Zhipu AI's GLM is specifically required. It is a good alternative to OpenAI models for tasks involving East Asian languages or when you want model diversity in a multi-LLM pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:53.186Z","isFirstParty":false}