{"uid":"cap_YTZYQ-l3JMu1k0r_-h6eM","slug":"pqs-prompt-quality-score-variant-generator-d145b4d2","name":"PQS: Prompt Quality Score – Variant Generator","description":"Generate N ranked prompt variants. Diverse rewrites scored on the 8-dimension PQS rubric, returned best-first.","url":"https://api.relai.fi/relay/1779373065272/api/variants","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"count":{"type":"integer","default":3,"maximum":5,"minimum":1,"description":"Number of variants to generate (1-5)"},"prompt":{"type":"string","maxLength":10000,"minLength":1,"description":"Prompt to generate variants for"},"vertical":{"enum":["software","content","business","education","science","crypto","general","research"],"type":"string","default":"general"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.100000","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.100000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SSGtz6mpz4C1QqcOIHTZE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates N ranked, diverse rewrites of a given prompt scored on an 8-dimension PQS rubric, returned best-first.","exampleAgentPrompt":"Can you give me 5 ranked rewrites of this prompt scored on the PQS rubric for the 'software' vertical: 'Write a Python function that parses JSON and handles errors'? Return the best one first.","exampleUseCases":null,"resultDescription":"A ranked list of up to 5 diverse prompt variants, each scored against the 8-dimension PQS rubric, ordered best-first. Each variant is a rewrite of the original prompt optimized for quality across dimensions like clarity, specificity, and intent alignment.","failureModes":["Empty or missing prompt returns 400 validation error","Count outside 1-5 range returns validation error","Invalid vertical enum value returns 400","Prompt exceeding 10,000 characters returns 400","Payment not provided or insufficient returns 402","Service unavailable returns 503"],"whenToPreferThis":"Use this endpoint when you need to improve prompt quality through diverse, scored rewrites rather than a single suggestion. Ideal when you want ranked alternatives with objective quality metrics across 8 dimensions, especially for domain-specific verticals like software, research, or content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T12:39:18.826Z","isFirstParty":false}