# PQS: Prompt Quality Score – Full Analysis (Solana x402)

> PQS: Prompt Quality Score – Full Analysis (Solana x402) is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.125/call, status unknown (last checked 2026-09-14).

Analyzes and scores a given prompt for quality across multiple dimensions, with payment via Solana x402 microtransaction

## Facts

- Endpoint: GET https://api.relai.fi/relay/1779373065272/api/score/full/sol
- Price: $0.125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pqs-prompt-quality-score-full-analysis-solana-x402-c8a7bc5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yhodD9XsdvWKc12aM3FBR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pqs-prompt-quality-score-full-analysis-solana-x402-c8a7bc5d
```

Example prompt: Can you run a full PQS prompt quality score on this prompt: 'Write a Python function that parses JSON and handles errors gracefully' — use the software vertical?

## When to prefer this

Choose this endpoint when you need a structured, scored evaluation of a prompt before deploying it in production, fine-tuning workflows, or comparing prompt variants. It is particularly useful for prompt engineers, AI developers, and content creators who want objective quality metrics rather than subjective human review. The vertical parameter makes it more useful than generic readability tools when you need domain-specific scoring (e.g. software vs. education vs. crypto). Prefer this over ad hoc LLM self-evaluation when you need a consistent, repeatable score.

## Known failure modes

- Empty or missing prompt returns 400 bad request
- Prompt exceeding 10,000 characters rejected with validation error
- Invalid vertical enum value returns schema validation error
- Payment failure or insufficient Solana balance prevents access (x402 payment required)
- Network or relay timeout if Solana payment confirmation is delayed
- 500 server error if scoring model is unavailable

## How this service works

Full PQS analysis (Solana x402)

## Output

A full Prompt Quality Score (PQS) analysis object including a numeric quality score and detailed breakdown of how well the input prompt performs across quality dimensions relevant to the chosen vertical (e.g. software, content, research). The response reflects strengths and weaknesses of the prompt's structure, clarity, and specificity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 10000,
   "minLength": 1,
   "description": "Prompt to score"
  },
  "vertical": {
   "enum": [
    "software",
    "content",
    "business",
    "education",
    "science",
    "crypto",
    "general",
    "research"
   ],
   "type": "string",
   "default": "general"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pqs-prompt-quality-score-full-analysis-solana-x402-c8a7bc5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
