{"uid":"cap_ee-84arN1riDCbYxPK6PW","slug":"tokensale-glm-5-2-chat-completions-e450b2c6","name":"Tokensale GLM-5-2 Chat Completions","description":"Один API-ключ для GPT и Claude-совместимых клиентов. Пакетные токены, прозрачное списание и контроль доступа.","url":"https://tokensale.maiapp.ru/x402/v1/models/glm-5-2/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","const":"glm-5-2"},"stream":{"type":"boolean","const":false},"messages":{"type":"array","items":{"type":"object"},"minItems":1},"max_tokens":{"type":"integer","minimum":1},"temperature":{"type":"number","maximum":2,"minimum":0},"max_completion_tokens":{"type":"integer","minimum":1}}},"responseSchema":{"type":"json","example":{"id":"x402-request","model":"glm-5-2","usage":{"total_tokens":2,"prompt_tokens":1,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello back"},"finish_reason":"stop"}],"modelCatalog":[{"id":"glm-5-2","payment":{"scheme":"upto","network":"eip155:8453","currency":"USDC"},"protocols":["messages"],"contextTokens":200000,"maxInputTokens":195904,"maxOutputTokens":4096,"priceUsdPerMillionTokens":{"input":"0.645000","output":"2.020000","cacheRead":"0.117000","cacheWrite":"0.645000"}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008288","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.008288/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008288","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008288","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hLH085KqMHfLzDFmyFvsH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008288","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 model via a pay-per-token x402 micropayment gateway","exampleAgentPrompt":"Send a chat message to GLM-5-2 asking it to summarize the following paragraph: 'Artificial intelligence is transforming industries worldwide, enabling automation of complex tasks and generating new insights from large datasets.' Pay per token via USDC.","exampleUseCases":[{"title":"Multilingual customer support drafting","prompt":"Use GLM-5-2 to draft a polite customer support reply in Chinese to a user who says their order hasn't arrived after 10 days — keep it under 100 words and professional."},{"title":"Code explanation with large context","prompt":"I have a 50,000-token codebase snippet I need explained — send it to GLM-5-2 and ask it to describe what the main module does and any potential bugs it spots."},{"title":"Pay-as-you-go research summarization","prompt":"Take this research abstract about CRISPR gene editing and ask GLM-5-2 to summarize it in three bullet points for a non-technical audience, paying only for the tokens I use."}],"resultDescription":"Returns an OpenAI-compatible JSON object with the assistant's reply message, finish reason (e.g. 'stop'), prompt and completion token counts, and a model catalog entry showing pricing, context window size (200k tokens), and payment scheme details on the Base network in USDC.","failureModes":["Insufficient USDC payment via x402 protocol returns payment required error","Invalid or malformed messages array causes 400 bad request","Exceeding maxInputTokens (195,904) truncates or rejects the request","Model unavailable or upstream GLM-5-2 service outage returns 503","Incorrect x402 payment header format causes authentication failure"],"whenToPreferThis":"Choose this endpoint when you need OpenAI/Claude-compatible chat completions from the GLM-5-2 model specifically, want pay-per-use token billing without a subscription, require a large 200k token context window, or need to pay programmatically via USDC micropayments on Base network through the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T22:43:56.721Z","isFirstParty":false,"canonicalSlug":"tokensale-glm-5-2-chat-completions-e450b2c6"}