llms.txt Content
# PQS — Prompt Quality Score
> Pre-flight prompt quality gate. Score any prompt 0–80 across 8 dimensions before inference. x402-native on Base.
## Full Documentation
[PQS Complete Documentation](https://pqs.onchainintel.net/llms-full.txt) — single-file deep reference with all endpoints, pricing, MCP install, dimension definitions, and positioning.
## What it does
PQS scores any LLM prompt across 8 dimensions using 5 cited academic frameworks (PEEM, RAGAS, MT-Bench, G-Eval, ROUGE). It returns a grade, percentile, and dimension breakdown. The full endpoint also returns an optimized version of the prompt with before/after outputs for comparison.
## Endpoints
### POST /api/score/free — FREE, no payment required
Basic score only. Returns total score and grade. No wallet needed.
Input: { "prompt": "your prompt here", "vertical": "crypto|content|software|business|education|science|general" }
Output: { "score": 11, "out_of": 40, "grade": "D" }
### POST /api/score — $0.025 USDC via x402
Score a prompt. Returns grade, percentile, and dimension breakdown.
Input: { "prompt": "your prompt here", "vertical": "crypto|content|software|business|education|science|general" }
Output: { "score": { "total": 11, "out_of": 40, "grade": "D", "percentile": 28, "dimensions": {...} }, "summary": "..." }
### POST /api/score/full — $0.125 USDC via x402
Full analysis. Returns optimized prompt plus before/after outputs.
Input: { "prompt": "your prompt here", "vertical": "crypto|content|software|business|education|science|general" }
Output: { "original": { "prompt": "...", "score": {...}, "output": "..." }, "optimized": { "prompt": "...", "score": {...}, "output": "..." }, "improvement_pct": 84 }
### POST /api/score/batch — $0.25 USDC via x402
Score up to 10 prompts in one call.
Input: { "prompts": ["prompt1", "prompt2"], "vertical": "crypto|content|software|business|education|science|general" }
Output: { "results": [{ "prompt": "...", "score": {...} }], "summary": {...} }
#
OpenAPI Spec (preview)
{"openapi":"3.1.0","info":{"title":"PQS: Prompt Quality Score","version":"2.0.0","description":"Pre-flight prompt quality gate. Score any prompt 0–80 across 8 dimensions before inference. x402-native on Base.","contact":{"name":"PQS","email":"ken@onchainintel.net","url":"https://pqs.onchainintel.net"},"x-guidance":"POST a prompt to /api/score/free for a free basic score, /api/score for a paid detailed score ($0.025 USDC), /api/score/full for optimized prompt + before/after outputs ($0.125 USDC