glm chat completions
glm_chat_completionsOpenAI-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 4096 output tokens. Costs $0.0082 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Ignored; always glm-4.7-flash | |
| tools | No | OpenAI function tools | |
| stream | No | ||
| messages | Yes | ||
| max_tokens | No | ||
| temperature | No |