{"uid":"cap_HF1COrIlewGpcoBmWEWUs","slug":"agent-hub-zhipu-glm-4-7-flash-chat-completions-98005b03","name":"Agent Hub – Zhipu GLM 4.7 Flash Chat Completions","description":"OpenAI-compatible chat completions on Zhipu GLM 4.7 Flash, reasoning and tool calling. Set your OpenAI SDK base URL to https://agents.torbrooknews.com/v1/glm and pay $0.003 per request with x402 instead of an API key. Same request/response shape as OpenAI (tool calling, reasoning, streaming supported), up to 4096 output tokens. Also callable as GET with the same fields as query parameters.","url":"https://agents.torbrooknews.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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9tY1AKk3dBtjtxsX-4OXf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 using Zhipu GLM 4.7 Flash with tool calling and reasoning, pay-per-request via x402 at $0.003 USDC","exampleAgentPrompt":"Ask the GLM 4.7 Flash model: 'Summarize the key differences between supervised and unsupervised learning in three bullet points' — pay per call, no API key needed, up to 4096 tokens output.","exampleUseCases":[{"title":"Cheap LLM for agent subtask","prompt":"Use the GLM 4.7 Flash model to answer this question for me: 'What are the top 5 strategies for reducing customer churn in a SaaS business?' Keep it concise and under 300 words."},{"title":"Tool-calling workflow automation","prompt":"I need the GLM 4.7 Flash model to decide which tool to call given this user request: 'Book a flight from NYC to London next Monday' — send it the available tools and let it pick the right one."},{"title":"On-demand reasoning without subscription","prompt":"Run this reasoning task through GLM 4.7 Flash: given the following financial data summary, identify any anomalies and explain your reasoning step by step. Use a temperature of 0.2 for consistency."}],"resultDescription":"Returns an OpenAI-compatible chat completion JSON object with the assistant's message, including optional tool_calls if tools were provided, reasoning content, and standard fields like finish_reason, usage token counts, and model name. Streaming is supported for real-time output.","failureModes":["Payment failure if x402 USDC balance is insufficient or wallet not configured","Prompt too long exceeding context window returns 400 error","Invalid tool schema causes tool calling to fail or be ignored","Temperature out of range may cause 422 validation error","GET request with missing required 'prompt' query parameter returns 400","Rate limiting or server overload returns 429 or 503"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap OpenAI-compatible LLM with tool calling and reasoning support, and want to pay per-call via x402 micropayments without managing API keys or subscriptions. It is ideal for agent pipelines needing a capable but cost-efficient Chinese open-source model (GLM 4.7 Flash) that is drop-in compatible with the OpenAI SDK. Prefer it over heavier models on this hub (Llama 70B, Qwen3 30B) when speed and cost matter more than maximum capability, and over OpenAI directly when you want pay-as-you-go crypto micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:44:30.232Z","isFirstParty":false,"canonicalSlug":"agent-hub-zhipu-glm-4-7-flash-chat-completions-98005b03"}