skills/polymer-pay-api-optimizer/SKILL.md
Find cheapest API providers, compare pricing across skills, and audit files for cost savings
npx skillsauth add polymerdao/pay-apis polymer-pay-api-optimizerInstall 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.
Find the cheapest Polymer Pay API provider for any operation. The Polymer Pay catalog has 70+ APIs with significant overlap — many operations can be done by multiple providers at wildly different prices. This skill automates cost analysis with a static pricing database (no API calls, no cost, instant results).
This is a local CLI tool (like polymer-pay-api-finder). It does not make API calls through the Polymer Pay proxy — it reads from a static pricing database bundled with the skill. Three commands for cost optimization:
Search by keyword to find the cheapest provider for an operation:
node scripts/optimize.js "email verification"
node scripts/optimize.js "twitter profile"
node scripts/optimize.js "company enrich"
node scripts/optimize.js "web search"
Returns: Providers sorted by price with savings percentage.
Compare pricing across 2+ skills for all overlapping operations:
node scripts/compare.js polymer-pay-stableenrich polymer-pay-hunter polymer-pay-tomba
node scripts/compare.js polymer-pay-scrape-creators polymer-pay-stableenrich
node scripts/compare.js polymer-pay-firecrawl polymer-pay-x402engine-web
Returns: ASCII table with operations as rows, skills as columns, cheapest marked.
Scan any file for API URLs and identify cheaper alternatives:
node scripts/audit.js tools.md
node scripts/audit.js src/api-client.js
node scripts/audit.js pipeline.sh
Returns: List of found APIs with alternatives, total cost vs optimized cost.
# 1. You need email verification — find the cheapest option
$ node scripts/optimize.js "email verification"
Email Verification (email-verify)
──────────────────────────────────────────────────
1. $0.0100 — Hunter (polymer-pay-hunter) [cheapest]
2. $0.0100 — Tomba (polymer-pay-tomba)
3. $0.0300 — StableEnrich Hunter (polymer-pay-stableenrich)
Savings: 67% by using Hunter instead of StableEnrich Hunter
# 2. Compare StableEnrich vs direct providers
$ node scripts/compare.js polymer-pay-stableenrich polymer-pay-hunter polymer-pay-tomba
# 3. Audit your existing tools file
$ node scripts/audit.js tools.md
| File | Purpose |
|------|---------|
| scripts/optimize.js | Find cheapest provider by keyword |
| scripts/compare.js | Side-by-side pricing comparison |
| scripts/audit.js | Scan files for API cost savings |
| data/pricing.json | Static pricing database (14 operations, 19 URL patterns) |
data/pricing.json — verified from each skill's SKILL.mddevelopment
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.
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.