Z.ai API
$0.01 – $0.02/call
Z.ai’s GLM series large language models, including GLM-4.5 and GLM-4.6, focus on advanced reasoning, coding, and agentic capabilities through a unique Mixture-of-Experts (MoE) architecture that prioritizes model depth over width for better…
Connect Z.ai API tools
Cursor
Claude Code
Claude Desktop
Windsurf
VS Code
Cline
Roo Code
ChatGPT
Gemini CLI
Amazon Q
Goose
Augment
n8n
API / cURL
AI SDK
TypeScript SDK
{
"mcpServers": {
"zai": {
"url": "https://zai.mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}Or connect all tools
Access all tools (including Z.ai API) through a single MCP connection.
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}Agent Discovery
Machine-readable catalogs for LLM agents and automation.
curl https://xpay.tools/llms.txt
curl https://xpay.tools/agents.txt
curl https://xpay.tools/skill.md
Pricing
Pay per tool call. No subscriptions.
10 Z.ai API tools availableFrequently Asked Questions
Z.ai API is an API provider available on xpay with 10 tools. Z.ai’s GLM series large language models, including GLM-4.5 and GLM-4.6, focus on advanced reasoning, coding, and agentic capabilities through a unique Mixture-of-Experts (MoE) architecture that prioritizes model depth over width for better efficiency and reasoning. All tools are pay-per-call with no monthly fees.
Z.ai API tools are priced at $0.01–$0.02 per call. You only pay when you use a tool — there are no subscriptions or monthly fees. New accounts get $5 in free credits to try any tool.
Each xpay provider has its own MCP endpoint. For Claude Code: claude mcp add --transport http zai "https://zai.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY". For Cursor/Windsurf/Cline/VS Code, add the same URL to mcp.json. To get every xpay provider in one connection, use https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY and discover tools with xpay_discover / xpay_run.
Z.ai API provides 10 tools: Zai Generate Image, Zai Web Reader, Zai File Upload, Zai Chat Completion, Zai Retrieve Result, and 5 more. Each tool can be called independently and has its own per-call pricing.
No. With xpay, one API key gives you access to all 10 Z.ai API tools plus tools from many other providers. You don't need to sign up for Z.ai API's API directly — xpay handles authentication, billing, and rate limiting.
Yes. Every new xpay account gets $5 in free credits — no credit card required. Sign up at xpay.tools to start running Z.ai API tools immediately.

