x402-pqs
v1.0.2
Published
Express middleware that scores prompts via PQS (Prompt Quality Score) before they hit any LLM endpoint
Maintainers
Readme
x402-pqs
Express middleware that scores prompts via PQS before they hit any LLM.
Built for x402-enabled agent workflows. Free tier -- no wallet required.
PQS API Endpoints
| Endpoint | Price | Description | |----------|-------|-------------| | POST /api/score/free | Free | Basic score + grade, no auth | | POST /api/score | $0.025 USDC | Full dimension breakdown | | POST /api/score/full | $0.125 USDC | Optimized prompt + before/after | | POST /api/score/batch | $0.25 USDC | Score up to 10 prompts | | POST /api/score/compare | $1.25 USDC | Claude vs GPT-4o, judged by third model |
Cross-Model Scoring
Real result -- Claude 36/40 vs GPT-4o 25/40. Faithfulness: 10 vs 3. GPT-4o fabricated wallet addresses. Claude admitted data limits.
Downstream Data Partners
Gate prompts with PQS before hitting paid data APIs (threshold: 28/40).
- SmartFlow Signals (https://api.smartflowproai.com) -- whale tracking, token scoring, governance. $0.02-$0.10 USDC on Base.
Powered by
PQS -- https://pqs.onchainintel.net | OnChainIntel -- https://onchainintel.net
