{"uid":"cap_4J6X7xABy-RyuJ_ci52zZ","slug":"pqs-prompt-quality-score-preflight-fbf381b3","name":"PQS: Prompt Quality Score Preflight","description":"Combined PQS prompt quality + x402 endpoint trust check before inference","url":"https://api.relai.fi/relay/1779373065272/api/preflight","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.050000","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.050000/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_OYb7mE4BgC0HKyYw3-Uoe","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":"Scores a prompt for quality and checks an optional endpoint URL for trust before routing to an AI inference endpoint","exampleAgentPrompt":"Before I send this prompt to an AI endpoint, run a preflight quality and trust check on it — the prompt is 'Summarize the key risks of investing in tokenized real estate in under 200 words', the vertical is 'crypto', and the endpoint URL is https://api.example.com/inference.","exampleUseCases":null,"resultDescription":"Returns a combined prompt quality score (PQS) and endpoint trust score indicating whether the prompt is well-formed and whether the target endpoint is safe to call before committing to an inference request.","failureModes":["Empty or missing prompt returns validation error","Unrecognized vertical enum value returns bad request","Endpoint URL unreachable or malformed returns trust check failure","Payment of $0.05 USDC not provided returns 402 Payment Required","Prompt exceeds 10,000 character limit returns length error"],"whenToPreferThis":"Use this endpoint when you need to gate AI inference calls with a quality and trust check — specifically when you want to avoid wasting money on low-quality prompts or untrusted endpoints, or when operating in a pipeline that requires x402 payment-gated preflight validation before inference.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:45:01.827Z","isFirstParty":false}