Prompt Quality Score Paid API
x402-paid endpoints (dual-mode: bearer API key also accepted)
x402-paid endpoints (dual-mode: bearer API key also accepted)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/promptqualityscore-com:promptqualityscore-com-paid-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: 'PQS: Prompt Quality Score Paid API'
version: 2.0.0
description: Pre-flight prompt quality gate. Score any prompt 0–80 across 8 dimensions before inference. x402-native on Base.
contact:
name: PQS
email: ken@promptqualityscore.com
url: https://promptqualityscore.com
x-guidance: POST a prompt to /api/score/free for a free basic score, /api/score for a paid detailed score ($0.025 USDC), /api/score/full for optimized prompt + before/after outputs ($0.125 USDC). Anonymous x402 payment on Base mainnet is the default; bearer PQS_... API keys accepted for subscribed customers.
servers:
- url: https://promptqualityscore.com
tags:
- name: paid
description: 'x402-paid endpoints (dual-mode: bearer API key also accepted)'
paths:
/api/v1/optimize:
post:
operationId: v1Optimize
summary: Full prompt optimization (Stripe-subscription tier)
description: Paid-tier Stripe-gated endpoint. Requires a bearer PQS_... API key attached to a solo/team/business/enterprise subscription. Returns optimized prompt + before/after scoring + both outputs.
tags:
- paid
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- prompt
properties:
prompt:
type: string
minLength: 1
maxLength: 10000
description: Prompt to score
vertical:
type: string
enum:
- software
- content
- business
- education
- science
- crypto
- general
- research
default: general
responses:
'200':
description: Full optimization result
content:
application/json:
schema:
type: object
required:
- pqs_version
- original
- optimized
properties:
pqs_version:
type: string
enum:
- '2.0'
original:
type: object
properties:
prompt:
type: string
score:
type: object
properties:
total:
type: integer
minimum: 8
maximum: 80
out_of:
type: integer
enum:
- 80
grade:
type: string
enum:
- A
- B
- C
- D
- F
percentile:
type: integer
dimensions:
type: object
properties:
clarity:
type: integer
minimum: 1
maximum: 10
specificity:
type: integer
minimum: 1
maximum: 10
context:
type: integer
minimum: 1
maximum: 10
constraints:
type: integer
minimum: 1
maximum: 10
output_format:
type: integer
minimum: 1
maximum: 10
role_definition:
type: integer
minimum: 1
maximum: 10
examples:
type: integer
minimum: 1
maximum: 10
cot_structure:
type: integer
minimum: 1
maximum: 10
total:
type: integer
minimum: 8
maximum: 80
output:
type: string
optimized:
type: object
properties:
prompt:
type: string
score:
type: object
properties:
total:
type: integer
minimum: 8
maximum: 80
out_of:
type: integer
enum:
- 80
grade:
type: string
enum:
- A
- B
- C
- D
- F
percentile:
type: integer
dimensions:
type: object
properties:
clarity:
type: integer
minimum: 1
maximum: 10
specificity:
type: integer
minimum: 1
maximum: 10
context:
type: integer
minimum: 1
maximum: 10
constraints:
type: integer
minimum: 1
maximum: 10
output_format:
type: integer
minimum: 1
maximum: 10
role_definition:
type: integer
minimum: 1
maximum: 10
examples:
type: integer
minimum: 1
maximum: 10
cot_structure:
type: integer
minimum: 1
maximum: 10
total:
type: integer
minimum: 8
maximum: 80
output:
type: string
improvement_pct:
type: integer
explanation:
type: string
powered_by:
type: string
'401':
description: Invalid or missing API key
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'402':
description: Free tier cannot use this endpoint - subscribe at promptqualityscore.com/pricing
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
'429':
description: Rate limited (per-tier)
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
components:
securitySchemes:
bearerAuth:
type: apiKey
in: header
name: Authorization
description: Bearer API key - header value is `Bearer PQS_xxx`. Obtain at https://promptqualityscore.com/api-key
x402:
type: apiKey
in: header
name: X-PAYMENT
description: x402 payment header. Clients receive a 402 challenge; pay via a wallet or x402-client and retry with X-PAYMENT.
x-discovery:
ownershipProofs: []