Prompt Quality Score Compare API

Cross-model judgment tier

GitHub OpenAPI

Operations 2

POST /api/score/compare Cross-model PQS comparison, Claude vs GPT-4o ($1.25 USDC) #
POST /api/score/compare/sol Cross-model comparison - Solana x402 ($1.25 USDC) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/promptqualityscore-com:promptqualityscore-com-compare-api"
All apis
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.

Get an API 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 Specification

promptqualityscore-com-compare-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'PQS: Prompt Quality Score Compare 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: compare
  description: Cross-model judgment tier
paths:
  /api/score/compare:
    post:
      operationId: scoreCompare
      summary: Cross-model PQS comparison, Claude vs GPT-4o ($1.25 USDC)
      description: 'Cross-model scoring: Claude Sonnet 4 vs GPT-4o, judged by a third model'
      tags:
      - compare
      security:
      - x402: []
      - 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: Scoring result
          content:
            application/json:
              schema:
                type: object
                required:
                - pqs_version
                - results
                - winner
                - verdict
                properties:
                  pqs_version:
                    type: string
                    enum:
                    - '2.0'
                  original_prompt:
                    type: string
                  optimized_prompt:
                    type: string
                  vertical:
                    type: string
                  results:
                    type: object
                    properties:
                      claude:
                        type: object
                        properties:
                          model:
                            type: string
                          output:
                            type: string
                          scores:
                            type: object
                            properties:
                              completeness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              relevancy:
                                type: integer
                                minimum: 1
                                maximum: 10
                              reasoning_depth:
                                type: integer
                                minimum: 1
                                maximum: 10
                              faithfulness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              total:
                                type: integer
                      gpt4o:
                        type: object
                        properties:
                          model:
                            type: string
                          output:
                            type: string
                          scores:
                            type: object
                            properties:
                              completeness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              relevancy:
                                type: integer
                                minimum: 1
                                maximum: 10
                              reasoning_depth:
                                type: integer
                                minimum: 1
                                maximum: 10
                              faithfulness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              total:
                                type: integer
                  winner:
                    type: string
                    enum:
                    - claude
                    - gpt4o
                  verdict:
                    type: string
                  powered_by:
                    type: string
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '401':
          description: Invalid or missing bearer API key (when using bearer auth)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '402':
          description: Payment Required - x402 challenge when no bearer API key present. See x-payment-info.
      x-payment-info:
        authMode: x402
        price: '1.25'
        currency: USD
        priceDetails:
          mode: fixed
          currency: USD
          amount: '1.25'
        protocols:
        - x402:
            chain: base
            chainId: 8453
            asset: USDC
            assetAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
            recipient: '0xB40a687ca5483Ebc02F870348f6e08971Cae1308'
  /api/score/compare/sol:
    post:
      operationId: scoreCompareSol
      summary: Cross-model comparison - Solana x402 ($1.25 USDC)
      description: Cross-model scoring (Solana x402)
      tags:
      - compare
      security:
      - x402: []
      - 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: Scoring result
          content:
            application/json:
              schema:
                type: object
                required:
                - pqs_version
                - results
                - winner
                - verdict
                properties:
                  pqs_version:
                    type: string
                    enum:
                    - '2.0'
                  original_prompt:
                    type: string
                  optimized_prompt:
                    type: string
                  vertical:
                    type: string
                  results:
                    type: object
                    properties:
                      claude:
                        type: object
                        properties:
                          model:
                            type: string
                          output:
                            type: string
                          scores:
                            type: object
                            properties:
                              completeness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              relevancy:
                                type: integer
                                minimum: 1
                                maximum: 10
                              reasoning_depth:
                                type: integer
                                minimum: 1
                                maximum: 10
                              faithfulness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              total:
                                type: integer
                      gpt4o:
                        type: object
                        properties:
                          model:
                            type: string
                          output:
                            type: string
                          scores:
                            type: object
                            properties:
                              completeness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              relevancy:
                                type: integer
                                minimum: 1
                                maximum: 10
                              reasoning_depth:
                                type: integer
                                minimum: 1
                                maximum: 10
                              faithfulness:
                                type: integer
                                minimum: 1
                                maximum: 10
                              total:
                                type: integer
                  winner:
                    type: string
                    enum:
                    - claude
                    - gpt4o
                  verdict:
                    type: string
                  powered_by:
                    type: string
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '401':
          description: Invalid or missing bearer API key (when using bearer auth)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
        '402':
          description: Payment Required - x402 challenge when no bearer API key present. See x-payment-info.
      x-payment-info:
        authMode: x402
        price: '1.25'
        currency: USD
        priceDetails:
          mode: fixed
          currency: USD
          amount: '1.25'
        protocols:
        - x402:
            chain: solana
            network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
            asset: USDC
            recipient: GSC1Jqqt374y276tydXn5Bsb6AvSF9LHqeacYJciAZDc
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: []