{"uid":"cap_Fu-Nx_8754V2q8BSpD3v6","slug":"citiview-glm-5-3-chat-completions-92bb2c47","name":"Citiview GLM-5.3 Chat Completions","description":"OpenAI-compatible chat completions on Zhipu GLM-5.3, frontier reasoning with tool calling and a 1M-token context. Set your OpenAI SDK base URL to https://agents.citiviewgroup.com/v1/glm5 and pay per token with x402 instead of an API key: $2.8 per million input and $8.8 per million output tokens, minimum $0.002 a call, at most $0.2322. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, rea","url":"https://agents.citiviewgroup.com/v1/glm5/chat/completions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"User message"},"system":{"type":"string","description":"Optional system message"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-...","model":"glm-5.3","usage":{"total_tokens":18,"prompt_tokens":14,"completion_tokens":4},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Bonjour !"},"finish_reason":"stop"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020079","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.020079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CTEKnJrtcXqRVV1tdCqIh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.020079","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"OpenAI-compatible chat completions powered by Zhipu GLM-5.3 with 1M-token context, tool calling, and per-token x402 micropayment pricing","exampleAgentPrompt":"Ask GLM-5.3 to explain the key differences between transformer and state-space model architectures — keep the response under 300 tokens and use a neutral, technical tone.","exampleUseCases":[{"title":"Long-document reasoning assistant","prompt":"I have a 500-page legal contract I need to analyze — use GLM-5.3 to summarize the key obligations, termination clauses, and liability limits. The context window needs to handle the whole document at once."},{"title":"Tool-calling agent for data pipelines","prompt":"Set up a GLM-5.3 chat session with tool calling enabled so it can query our internal database API and answer questions about monthly sales figures — I want it to call the right tools automatically rather than just guessing."},{"title":"Pay-per-use LLM for batch classification","prompt":"I need to classify 200 customer support tickets by urgency — use GLM-5.3 at the cheapest input token rate you can find, pay per call, and label each ticket as low, medium, or high priority."}],"resultDescription":"Returns an OpenAI-format chat completion JSON object with the assistant's message content, role, finish reason (e.g. 'stop'), model name ('glm-5.3'), and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). The response is structurally identical to OpenAI's /v1/chat/completions response, enabling drop-in compatibility with existing OpenAI SDK clients.","failureModes":["Insufficient x402 payment balance causes 402 Payment Required before generation begins","prompt parameter missing results in a 400 Bad Request","Token usage exceeding max_tokens cap truncates output with finish_reason='length'","Rate or quota limits on the underlying GLM-5.3 model cause 429 or 503 errors","Malformed query parameters (e.g. non-numeric temperature) return 400 validation errors","Network timeout on very long generations with large contexts"],"whenToPreferThis":"Prefer this endpoint when you need an OpenAI-compatible chat completion API with no subscription or API key required, paying per token via x402 micropayments. It is especially well-suited for agents that need a very large context window (up to 1M tokens), require tool calling or structured reasoning, or want to experiment with Zhipu GLM-5.3 without committing to a monthly plan. Choose it over OpenAI's own endpoints when budget is per-call and you want to avoid credential management, or when you specifically need GLM-5.3's characteristics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-29T12:36:16.323Z","isFirstParty":false,"canonicalSlug":"citiview-glm-5-3-chat-completions-92bb2c47"}