{"uid":"cap_xxP40lgZCHhr29XzxiMs2","slug":"promptqualityscore-com-42826a44","name":"PQS Grade — Prompt Quality Quick Score","description":"Quick pre-flight quality score: composite (0-100) + grade (A-F) + three framework sub-scores (PEEM, RAGAS, G-Eval) + verdict. Run upstream of any other paid call to filter weak prompts before inference. The cheapest gate on the AI input quality problem.","url":"https://promptqualityscore.com/api/pqs-grade","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Prompt text to grade (1-10000 chars)"},"vertical":{"type":"string","description":"Optional domain: software/content/business/education/science/crypto/general/research"}}},"responseSchema":{"type":"object","required":["score","grade","verdict","frameworks"],"properties":{"grade":{"enum":["A","B","C","D","F"],"type":"string"},"score":{"type":"integer","maximum":100,"minimum":0,"description":"Composite 0-100 score (percentile-normalized total)"},"verdict":{"type":"string","description":"Single sentence diagnosing the weakest dimension, with a framework citation"},"frameworks":{"type":"object","required":["peem","ragas","geval"],"properties":{"peem":{"type":"number","maximum":10,"minimum":0,"description":"PEEM framework score: weights structure (clarity, output format, role, constraints)"},"geval":{"type":"number","maximum":10,"minimum":0,"description":"G-Eval framework score: weights LLM-judged faithfulness (clarity, specificity, CoT, constraints)"},"ragas":{"type":"number","maximum":10,"minimum":0,"description":"RAGAS framework score: weights grounding (context, specificity, examples)"}}},"upgrade_url":{"type":"string","description":"Link to PQS Pro for the full 8-dimension SaaS"},"methodology_url":{"type":"string","description":"Link to the methodology blog post explaining the five-framework synthesis"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HYreVVNqzpwOBvv4abnB5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scores a prompt text with a composite 0-100 score, A-F letter grade, three framework sub-scores (PEEM, RAGAS, G-Eval), and a pass/fail verdict for use as a cheap pre-flight filter before expensive LLM calls","exampleAgentPrompt":"Before I send this to Claude, can you run a quick quality check on this prompt and give me a composite score, letter grade, and the PEEM, RAGAS, and G-Eval sub-scores — treat it as a software domain prompt: 'You are an expert Python developer. Given a buggy function below, identify the root cause and return a corrected version with inline comments explaining each fix.'","exampleUseCases":[{"title":"Pre-filter customer support chatbot prompts","prompt":"I'm building a customer support chatbot and want to catch poorly-written prompts before they hit my LLM API. Can you score this prompt and tell me if it's production-ready: 'Answer customer questions helpfully and be nice. Use the knowledge base if you need to.'"},{"title":"Validate data extraction workflows upstream","prompt":"We're running document data extraction at scale and each extraction prompt costs money. Before we submit this one to Claude, can you give us a quality score with the letter grade and framework breakdown: 'Extract the invoice date, total amount, and vendor name from the provided document. Format as JSON.'"},{"title":"Gate technical instruction prompts cheaply","prompt":"I need a fast, cheap way to validate my prompt quality before sending it to an expensive model. Score this software engineering prompt for me and give me the composite score, grade, and PEEM/RAGAS/G-Eval sub-scores: 'Design a REST API endpoint that handles pagination, filtering, and sorting for a user database. Consider security and performance.'"}],"resultDescription":"Returns a composite quality score from 0-100, a letter grade from A to F, individual sub-scores for the PEEM, RAGAS, and G-Eval frameworks, and an overall verdict indicating whether the prompt is ready for submission to a paid LLM.","failureModes":["Empty or missing prompt text returns a 400 validation error","Prompt exceeding 10,000 characters is rejected","Unrecognized vertical enum value causes a validation error","Network timeout if the scoring service is under load","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint as the cheapest gate in an agentic pipeline when you want to discard low-quality prompts before spending on a costlier LLM inference call. Prefer it when you need a fast, multi-framework quality signal (PEEM, RAGAS, G-Eval all at once) with a human-readable grade rather than running a full LLM evaluation pass yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:51.201Z","isFirstParty":false}