# Zhipu GLM (via x402 Gateway)

> Zhipu GLM (via x402 Gateway) is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.030000/call, status unknown (last checked 2026-09-13).

Calls Zhipu AI's flagship GLM model for multilingual text generation and reasoning tasks via a pay-per-call x402 gateway

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/llm/glm
- Price: $0.030000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-ed901784
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XVjua_8Ayv1fN6HdK06pI

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 x402-gateway-production-up-railway-app-ed901784 -d '<json body>'
```

Example prompt: Can you use Zhipu's GLM model to translate and summarize this Chinese article into English, and then explain the key arguments it makes?

## When to prefer this

Prefer this endpoint when you need strong multilingual capability — especially for Chinese, Japanese, Korean, or other non-English languages — or when Zhipu AI's GLM is specifically required. It is a good alternative to OpenAI models for tasks involving East Asian languages or when you want model diversity in a multi-LLM pipeline.

## Known failure modes

- Payment not attached or invalid x402 payment header — returns 402 Payment Required
- Malformed request body or missing prompt — returns 400 Bad Request
- Model temporarily unavailable or upstream Zhipu API error — returns 502 or 503
- Rate limit exceeded — returns 429 Too Many Requests
- Request timeout if prompt is very long or complex

## How this service works

Zhipu AI's flagship model — strong multilingual and reasoning performance

## Output

Returns generated text from Zhipu AI's GLM model — the response is a natural language completion, answer, translation, summary, or other text output depending on the prompt provided.

## Example request

```json
{
 "model": "glm-4",
 "messages": [
  {
   "role": "user",
   "content": "Translate the following English text to French: 'Hello world. Artificial intelligence is transforming how we work.'"
  }
 ],
 "max_tokens": 500,
 "temperature": 0.7
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-ed901784/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
