---
title: "Score a prompt - Solana x402 ($0.025 USDC)"
method: POST
path: "/api/score/sol"
tags: ["score", "paid", "solana"]
---

# Score a prompt - Solana x402 ($0.025 USDC)

`POST /api/score/sol`

## Request

- Base URL: `https://promptqualityscore.com`
- URL: `https://promptqualityscore.com/api/score/sol`
- Auth: one of:
  - API key in header `X-PAYMENT`
  - API key in header `Authorization`

Basic PQS prompt score (Solana x402)

## Request body

- object
  - `prompt` string, required: Prompt to score
  - `vertical` 'software' | 'content' | 'business' | 'education' | 'science' | 'crypto' | 'general' | 'research'

## Response `200`

Scoring result

- object
  - `pqs_version` '2.0', required
  - `prompt` string
  - `vertical` string
  - `score` object, required
    - `total` integer
    - `out_of` 80
    - `grade` 'A' | 'B' | 'C' | 'D' | 'F'
    - `percentile` integer
    - `dimensions` object
      - `clarity` integer
      - `specificity` integer
      - `context` integer
      - `constraints` integer
      - `output_format` integer
      - `role_definition` integer
      - `examples` integer
      - `cot_structure` integer
      - `total` integer
  - `top_fixes` string[]
  - `upgrade` string
  - `powered_by` string

## Other responses

- `400`: Invalid request body
- `401`: Invalid or missing bearer API key (when using bearer auth)
- `402`: Payment Required - x402 challenge when no bearer API key present. See x-payment-info.

---

[API](https://skmtc.dev/promptqualityscore/apis/pqs-prompt-quality-score.md) · [All operations](https://skmtc.dev/promptqualityscore/apis/pqs-prompt-quality-score/llms.txt) · [OpenAPI document](https://skmtc.dev/promptqualityscore/apis/pqs-prompt-quality-score/revisions/7f3f43a1c864?raw)
