# X402-NVIDIA GLM-4 Chat Completions via Micropayment

> X402-NVIDIA GLM-4 Chat Completions via Micropayment is a paid API for AI agents from x402-nvidia.vercel.app, paid per call via x402, $0.159018/call, status unknown (last checked 2026-09-14).

Access NVIDIA NIM's ZhipuAI GLM-4 language model for chat completions via x402 micropayment at $0.159018 USDC per call

## Facts

- Endpoint: POST https://x402-nvidia.vercel.app/api/z-ai-glm5
- Price: $0.159018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-nvidia-glm-4-chat-completions-via-micropayment-5cc3ce43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ckXexLRfRA2OQbMbG4A09

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-nvidia-glm-4-chat-completions-via-micropayment-5cc3ce43 -d '<json body>'
```

Example prompt: Using the NVIDIA NIM GLM-4 model, answer this question for me: 'What are the main differences between transformer and diffusion architectures in deep learning?' — pay the per-call fee automatically.

## When to prefer this

Choose this endpoint when you need GLM-4/GLM-5 family model inference specifically hosted on NVIDIA NIM infrastructure and want pay-per-call billing via x402 USDC micropayments rather than a subscription. Ideal for agents that need occasional inference without committing to a monthly plan, or when ZhipuAI's GLM model specifically is required.

## Known failure modes

- Payment failure: x402 micropayment rejected or insufficient USDC balance
- Model unavailable: NVIDIA NIM endpoint for z-ai-glm5 is down or rate-limited
- Invalid input: malformed message array or missing required fields returns 400
- Timeout: model inference takes too long and request times out
- Authorization error: x402 payment header missing or invalid

## How this service works

Access 48+ NVIDIA NIM AI models via x402 micropayments. Chat completions, vision, safety, translation, and more.

## Output

Returns a choices array containing one or more assistant message objects, each with a role of 'assistant' and a content string containing the model's generated reply to the input prompt.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "Hello!"
    }
   }
  ]
 },
 "properties": {
  "choices": {
   "type": "array",
   "description": "Model responses"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-nvidia-glm-4-chat-completions-via-micropayment-5cc3ce43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-nvidia.vercel.app](https://www.zero.xyz/host/x402-nvidia.vercel.app/llms.txt)
