Api Endpoint

PQS - A Quality Gate For Prompts

A Quality Gate For Prompts. Before they break production. Score any AI prompt against 8 dimensions, see what's weak, and get the fixed version in seconds.

Open interactive test console

Offering

Provider
promptqualityscore.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://promptqualityscore.com/api/variants
MIME type
Not provided
First seen
2026-10-16T01:59:37.852Z
Last seen
Tags
AI, Utility

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.1 USDC
Atomic price: 100000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.1 USDC
Atomic price: 100000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "100000",
    "payTo": "0xb40a687ca5483ebc02f870348f6e08971cae1308"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "100000",
    "payTo": "0xB40a687ca5483Ebc02F870348f6e08971Cae1308"
  }
]

Observed health

Status
Healthy
Latest latency
91 ms
Average latency
201 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "http",
  "method": "POST",
  "bodyType": "json",
  "bodyFields": {
    "count": {
      "type": "integer",
      "description": "Number of variants to generate (1-5, default 3)"
    },
    "prompt": {
      "type": "string",
      "description": "Prompt to generate variants for"
    },
    "vertical": {
      "type": "string",
      "description": "Domain: software/content/business/education/science/crypto/general/research"
    }
  },
  "discoverable": true
}

Output schema

{
  "type": "object",
  "required": [
    "pqs_version",
    "variants"
  ],
  "properties": {
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "score": {
            "type": "object",
            "properties": {
              "grade": {
                "enum": [
                  "A",
                  "B",
                  "C",
                  "D",
                  "F"
                ],
                "type": "string"
              },
              "total": {
                "type": "integer",
                "maximum": 80,
                "minimum": 8
              },
              "out_of": {
                "enum": [
                  80
                ],
                "type": "integer"
              },
              "dimensions": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer",
                    "maximum": 80,
                    "minimum": 8
                  },
                  "clarity": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "context": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "examples": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "constraints": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "specificity": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "cot_structure": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "output_format": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "role_definition": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  }
                }
              },
              "percentile": {
                "type": "integer"
              }
            }
          },
          "style": {
            "type": "string",
            "description": "Generation angle: detailed | concise | structured | role-framed | example-led"
          },
          "prompt": {
            "type": "string"
          },
          "delta_vs_baseline": {
            "type": "integer",
            "description": "score.total - baseline_score.total"
          }
        }
      },
      "maxItems": 5,
      "minItems": 1
    },
    "vertical": {
      "type": "string"
    },
    "powered_by": {
      "type": "string"
    },
    "pqs_version": {
      "enum": [
        "2.0"
      ],
      "type": "string"
    },
    "baseline_score": {
      "type": "object",
      "properties": {
        "grade": {
          "enum": [
            "A",
            "B",
            "C",
            "D",
            "F"
          ],
          "type": "string"
        },
        "total": {
          "type": "integer",
          "maximum": 80,
          "minimum": 8
        },
        "out_of": {
          "enum": [
            80
          ],
          "type": "integer"
        },
        "dimensions": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "maximum": 80,
              "minimum": 8
            },
            "clarity": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "context": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "examples": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "constraints": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "specificity": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "cot_structure": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "output_format": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            },
            "role_definition": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1
            }
          }
        },
        "percentile": {
          "type": "integer"
        }
      }
    },
    "original_prompt": {
      "type": "string"
    },
    "best_variant_index": {
      "type": "integer",
      "minimum": 0
    }
  }
}