{
  "x402Version": 2,
  "id": 8844,
  "slug": "8844",
  "resource": "https://promptqualityscore.com/api/pqs-grade",
  "description": "Quick pre-flight quality score: composite (0-100) + grade (A-F) + three framework sub-scores (PEEM, RAGAS, G-Eval) + verdict. Run upstream of any other paid call to filter weak prompts before inference. The cheapest gate on the AI input quality problem.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB40a687ca5483Ebc02F870348f6e08971Cae1308",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "ai",
      "discoverable": true,
      "info": {
        "input": {
          "body": {
            "prompt": "Explain PQS scoring in one sentence to an AI agent operator.",
            "vertical": "general"
          },
          "bodyType": "json",
          "method": "POST",
          "pathParams": {},
          "type": "http"
        },
        "output": {
          "example": {
            "frameworks": {
              "geval": 6,
              "peem": 5.5,
              "ragas": 5.7
            },
            "grade": "C",
            "methodology_url": "https://promptqualityscore.com/blog/five-framework-synthesis?utm_source=pqs-grade&utm_medium=api&utm_campaign=2026-05-grade-launch",
            "score": 58,
            "upgrade_url": "https://promptqualityscore.com/pro?utm_source=pqs-grade&utm_medium=api&utm_campaign=2026-05-grade-launch",
            "verdict": "PEEM flags weak output format and role definition. Specify how the answer should be shaped and who is asking."
          },
          "type": "json"
        }
      },
      "routeTemplate": ":var1",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "prompt": {
                    "description": "Prompt text to grade (1-10000 chars)",
                    "maxLength": 10000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "vertical": {
                    "default": "general",
                    "description": "Optional domain: software/content/business/education/science/crypto/general/research",
                    "enum": [
                      "software",
                      "content",
                      "business",
                      "education",
                      "science",
                      "crypto",
                      "general",
                      "research"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "prompt"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "pathParams": {
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "pqs-grade",
        "prompt-quality",
        "preflight",
        "scoring",
        "llm-tooling",
        "x402",
        "pqs"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "promptqualityscore.com",
  "lastUpdated": "2026-09-17T05:44:44.227Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-17T05:44:43.9Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "promptqualityscore.com",
    "manifest_name": "promptqualityscore.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}