{"uid":"cap_P1gc_l--q_om25yXwu3cH","slug":"agentrxi-glm-4-7-flash-chat-completion-c261b3c3","name":"AgentRXI GLM-4.7-Flash Chat Completion","description":"OpenAI-compatible chat completions on Zhipu GLM 4.7 Flash, reasoning and tool calling. Set your OpenAI SDK base URL to https://agentrxi.com/v1/glm and pay per token with x402 instead of an API key: $0.18 per million input and $1.2 per million output tokens, minimum $0.002 a call, at most $0.0082. The 402 quotes your request's maximum; \"upto\" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 409","url":"https://agentrxi.com/v1/glm/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-4.7-flash","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.004462","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.004462/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004462","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004462","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9OdZ70ieon03p1GG68XSg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004462","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-call LLM chat completion using GLM-4.7-Flash via an OpenAI-compatible interface, paid per call in USDC with no API key or signup required.","exampleAgentPrompt":"Ask the GLM-4.7-Flash model on AgentRXI: 'What are three tips for writing clean Python code?' — keep the response under 200 tokens.","exampleUseCases":[{"title":"Multilingual customer greeting generation","prompt":"Use the GLM-4.7-Flash model to translate and rephrase this greeting into formal French: 'Welcome to our service, how can we help you today?' Keep it under 50 tokens."},{"title":"Quick factual QA for agent pipeline","prompt":"Ask the GLM model: 'What is the capital of Brazil?' — I need a short factual answer, max 20 tokens, no extra commentary."},{"title":"Dynamic system-prompted assistant","prompt":"Run a GLM-4.7-Flash chat completion with the system message 'You are a concise legal assistant' and user prompt 'Summarize what a non-disclosure agreement does in two sentences.' Limit it to 100 tokens."}],"resultDescription":"Returns an OpenAI-compatible JSON chat completion object including the assistant's reply text, finish reason, token usage breakdown (prompt, completion, total), model name (glm-4.7-flash), and a unique completion ID.","failureModes":["Missing required 'prompt' query parameter returns a 400 error","Insufficient USDC payment or failed x402 payment flow returns a 402 error","Exceeded max_tokens limit may cause truncated output with finish_reason 'length'","Invalid temperature value (outside 0–2 range) may cause a 422 validation error","Network timeout if the model takes too long to respond"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost LLM inference call without any API key or account setup, especially if you're already using x402 USDC micropayments. It's ideal for agents needing quick, OpenAI-compatible chat completions at a fixed per-call price, and particularly useful when GLM-4.7-Flash's multilingual strengths (especially Chinese) are an advantage over Western-centric models.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:58.868Z","isFirstParty":false,"canonicalSlug":"agentrxi-glm-4-7-flash-chat-completion-c261b3c3"}