{"uid":"cap_1oBw-yQK1JsCwOZKPwYAP","slug":"agentrxi-glm-5-3-chat-completions-d4e6337f","name":"AgentRXI 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://agentrxi.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, reasoning, stre","url":"https://agentrxi.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_YsxYGc-7ni5uwUyUVjPcX","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":"Runs OpenAI-compatible chat completions on Zhipu GLM-5.3, a frontier reasoning model with tool calling and 1M-token context, billed per-token via x402 micropayments.","exampleAgentPrompt":"Ask the GLM-5.3 model: 'Explain the philosophical implications of the simulation hypothesis in three paragraphs' — use a temperature of 0.7 and limit to 500 tokens.","exampleUseCases":[{"title":"Reasoning over long legal documents","prompt":"I have a 200,000-token contract I need analyzed for liability clauses — can you send the full text to GLM-5.3 and ask it to summarize every clause that limits indemnification? Use a system message that says 'You are a legal analyst.'"},{"title":"Agentic tool-calling workflow","prompt":"Use the GLM-5.3 chat endpoint to orchestrate a multi-step research task: give it the tools for web search and calculator, then ask it 'What is the current GDP of Germany divided by its population?' and let it call the tools to find out."},{"title":"Creative writing with controlled temperature","prompt":"Generate a short sci-fi story opening paragraph about a sentient starship using GLM-5.3, set temperature to 0.9 and max tokens to 300 — I want something imaginative and unpredictable."}],"resultDescription":"Returns an OpenAI-format chat.completion JSON object with the assistant's message content, finish reason (e.g. 'stop'), model identifier ('glm-5.3'), and token usage breakdown (prompt_tokens, completion_tokens, total_tokens).","failureModes":["Insufficient x402 payment or wallet balance returns 402 Payment Required","Prompt too long for model context returns 400 or truncation error","Invalid or missing prompt parameter returns 400 Bad Request","Model unavailable or overloaded returns 503 Service Unavailable","Streaming not fully supported in all client configurations may cause incomplete responses"],"whenToPreferThis":"Choose this endpoint when you need a frontier reasoning model with a very large context window (1M tokens) and OpenAI SDK compatibility, want per-token micropayment billing via x402 instead of a monthly API key subscription, or specifically need Zhipu GLM-5.3's reasoning and tool-calling capabilities without committing to a fixed plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:09.644Z","isFirstParty":false,"canonicalSlug":"agentrxi-glm-5-3-chat-completions-d4e6337f"}