{"uid":"cap_cF7iUHbc-3WOVbcz2nYc6","slug":"pqs-prompt-quality-score-full-analysis-f9730686","name":"PQS: Prompt Quality Score - Full Analysis","description":"Full PQS analysis: optimized prompt + before/after scoring + both outputs","url":"https://api.relai.fi/relay/1779373065272/api/score/full","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"Prompt to run through both Claude and GPT-4o for cross-model comparison"},"vertical":{"enum":["software","content","business","education","science","crypto","general","research"],"type":"string","default":"general","description":"Domain: software/content/business/education/science/crypto/general/research"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.125000","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.125000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.125","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.125","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UBcSrxpjJXwzCcXKAGx-D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.125","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a prompt's quality, generates an optimized version, and returns before/after scores along with both original and improved outputs","exampleAgentPrompt":"Can you run a full PQS (Prompt Quality Score) analysis on this prompt: 'Explain how neural networks work' — use the 'education' vertical, and show me the optimized version along with the before and after quality scores?","exampleUseCases":null,"resultDescription":"Returns a full analysis object including: the original prompt's quality score, an optimized version of the prompt, the optimized prompt's quality score, the output generated by the original prompt, and the output generated by the optimized prompt — enabling direct before/after comparison.","failureModes":["Empty or missing prompt returns validation error","Prompt exceeding 10,000 characters is rejected","Invalid vertical enum value returns 400 error","Payment not provided or insufficient results in 402 Payment Required","Service timeout if prompt is unusually complex"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive, end-to-end prompt quality evaluation — not just a score, but also the optimized prompt and side-by-side outputs. Prefer this over a basic scoring endpoint when you want actionable improvement, not just a number.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:13.672Z","isFirstParty":false}