# Agent Hub – Zhipu GLM 4.7 Flash Chat Completions

> Agent Hub – Zhipu GLM 4.7 Flash Chat Completions is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

OpenAI-compatible chat completions using Zhipu GLM 4.7 Flash with tool calling and reasoning, pay-per-request via x402 at $0.003 USDC

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/glm/chat/completions?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-zhipu-glm-4-7-flash-chat-completions-98005b03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HF1COrIlewGpcoBmWEWUs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-hub-zhipu-glm-4-7-flash-chat-completions-98005b03
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-zhipu-glm-4-7-flash-chat-completions-98005b03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
