skills/polymer-pay-zai/SKILL.md
USE THIS SKILL WHEN: the user wants to use Z.ai's GLM models for chat, translation, image generation, video generation, or web search. Z.ai provides GLM-4.5 and GLM-4.6 with advanced reasoning and agentic capabilities.
npx skillsauth add polymerdao/pay-apis polymer-pay-zaiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 through the Polymer Pay proxy. No API key needed — payment is handled automatically.
All requests route through the Polymer Pay proxy. Include your Polymer Pay API key in every request:
{
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
}
}
Base URL: https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai
To get an Polymer Pay API key, sign up at https://my.pay.polymerlabs.org/dashboard/api-keys.
Create chat completion with GLM models.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/chat/completions",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"model": "glm-4",
"messages": [
{"role": "user", "content": "What are the latest developments in AI?"}
]
}
}
Response: JSON with AI-generated response.
Generate images from text prompts using CogView.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/images/generations",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"model": "CogView-4-250304",
"prompt": "A beautiful sunset over mountains"
}
}
Response: JSON with generated image URLs.
Generate videos from text or images using CogVideoX.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/videos/generations",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"model": "cogvideox-3",
"prompt": "A cat playing with a ball"
}
}
Response: JSON with generated video.
Search the web for AI-powered results.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/web_search",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"search_engine": "search-prime",
"search_query": "latest AI news"
}
}
Response: JSON with search results.
Read and parse content from URLs.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/reader",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"url": "https://example.com/article",
"return_format": "markdown"
}
}
Response: JSON with extracted content.
Upload auxiliary files for translation or other purposes.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/paas/v4/files",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"purpose": "agent",
"file": "file_content_here"
}
}
Response: JSON with file upload confirmation.
Use the general translation API for multilingual translation.
Pricing: $0.01
{
"method": "POST",
"url": "https://pay.polymerlabs.org/proxy/https/x402.orth.sh/zai/api/v1/agents",
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
},
"body": {
"agent_id": "general_translation",
"messages": [{"role": "user", "content": "Translate to Spanish: Hello world"}]
}
}
Response: JSON with translated content.
development
USE THIS SKILL WHEN: the user wants a quick single-page scrape to markdown or a webpage screenshot. Provides lightweight web scraping and screenshots via x402engine through the Polymer Pay proxy.
data-ai
USE THIS SKILL WHEN: the user wants to generate AI images with FLUX models or create text-in-image with Ideogram. Provides pay-per-use image generation via x402engine through the Polymer Pay proxy.
data-ai
USE THIS SKILL WHEN: the user wants wallet balances, transactions, PnL, ENS resolution, token prices, or transaction simulation. Provides pay-per-use blockchain operations via x402engine through the Polymer Pay proxy.
content-media
USE THIS SKILL WHEN: the user wants to generate speech audio from text (TTS) or transcribe audio files to text. Provides pay-per-use text-to-speech and transcription via x402engine through the Polymer Pay proxy.