{"uid":"cap_7mVdT_8bU0PoHMsFgoDAW","slug":"pqs-prompt-quality-score-ac4940cc","name":"PQS: Prompt Quality Score","description":"Preflight prompt + endpoint trust (Solana x402)","url":"https://api.relai.fi/relay/1779373065272/api/preflight/sol","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"Prompt to preflight"},"vertical":{"enum":["software","content","business","education","science","crypto","general","research"],"type":"string","default":"general","description":"Domain: software/content/business/education/science/crypto/general/research"},"endpoint_url":{"type":"string","description":"Optional endpoint URL for trust scoring"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_52EB8Im0WimCP-2wY6Qkm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a prompt's quality and optionally scores endpoint trustworthiness before sending it to an AI service","exampleAgentPrompt":"Can you preflight this prompt for me and tell me its quality score? The prompt is: 'Summarize the latest trends in DeFi yield farming in under 200 words.' Use the crypto vertical, and also check the trust score for the endpoint at https://api.example.com/defi-summary.","exampleUseCases":null,"resultDescription":"Returns a prompt quality score indicating how well-formed and effective the prompt is expected to be, optionally accompanied by a trust score for the specified endpoint URL, scoped to the chosen domain vertical.","failureModes":["Empty or missing prompt returns validation error","Invalid vertical enum value returns 400 bad request","Malformed endpoint_url may cause trust scoring to fail or be skipped","Payment not fulfilled (x402) blocks request execution","Prompt exceeding 10,000 characters rejected","Network timeout on slow endpoint trust resolution"],"whenToPreferThis":"Use this endpoint when you want to assess a prompt's quality before dispatching it to a downstream AI service, especially when combined with endpoint trust verification. Ideal for agent workflows that need a preflight gate to avoid wasting compute or money on poorly-formed prompts. Best when operating in a specific domain vertical (software, crypto, research, etc.) where scoring precision matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:29.475Z","isFirstParty":false}